Update duokai.sh

This commit is contained in:
smeb y 2024-03-27 11:34:48 +08:00 committed by GitHub
parent 96f86874ba
commit 33a2f489ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,8 +65,8 @@ do
# 修改宿主机上的config.toml文件以设置StorageGB值 # 修改宿主机上的config.toml文件以设置StorageGB值
docker exec $container_id bash -c "\ docker exec $container_id bash -c "\
sed -i 's/#StorageGB = .*/StorageGB = '$storage_gb'/' /root/.titanedge/config.toml && \ sed -i 's/^[[:space:]]*#StorageGB = .*/StorageGB = $storage_gb/' /root/.titanedge/config.toml && \
echo '容器 titan$i 的存储空间已设置为 $storage_gb GB'" echo '容器 titan'$i' 的存储空间已设置为 $storage_gb GB'"
# 进入容器并执行绑定和其他命令 # 进入容器并执行绑定和其他命令
docker exec $container_id bash -c "\ docker exec $container_id bash -c "\