Update duokai.sh
This commit is contained in:
parent
334bfa326a
commit
99b85ad9f8
@ -69,8 +69,7 @@ sleep 60
|
|||||||
# 修改宿主机上的config.toml文件以设置StorageGB值
|
# 修改宿主机上的config.toml文件以设置StorageGB值
|
||||||
config_path="$HOME/.titanedge/config.toml"
|
config_path="$HOME/.titanedge/config.toml"
|
||||||
if [ -f "$config_path" ]; then
|
if [ -f "$config_path" ]; then
|
||||||
# 修改文件,设置StorageGB
|
sed -i '/StorageGB =/c\StorageGB = '$storage_gb'' "$config_path"
|
||||||
sed -i "s/#StorageGB = 64/StorageGB = $storage_gb/g" "$config_path"
|
|
||||||
echo "已将存储空间设置为 $storage_gb GB"
|
echo "已将存储空间设置为 $storage_gb GB"
|
||||||
else
|
else
|
||||||
echo "配置文件未找到,可能需要手动设置StorageGB。请检查容器是否正确启动并生成了配置文件。"
|
echo "配置文件未找到,可能需要手动设置StorageGB。请检查容器是否正确启动并生成了配置文件。"
|
||||||
|
Loading…
Reference in New Issue
Block a user