Update duokai.sh

This commit is contained in:
smeb y 2024-03-25 00:40:51 +08:00 committed by GitHub
parent 99b85ad9f8
commit faa8c37c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,11 +69,12 @@ sleep 60
# 修改宿主机上的config.toml文件以设置StorageGB值
config_path="$HOME/.titanedge/config.toml"
if [ -f "$config_path" ]; then
sed -i '/StorageGB =/c\StorageGB = '$storage_gb'' "$config_path"
sed -i '/StorageGB =/c\ StorageGB = '$storage_gb'' "$config_path"
echo "已将存储空间设置为 $storage_gb GB"
else
echo "配置文件未找到可能需要手动设置StorageGB。请检查容器是否正确启动并生成了配置文件。"
fi
echo "==============================所有节点均已设置并启动===================================."