Update duokai.sh

This commit is contained in:
smeb y 2024-04-27 23:22:21 +08:00 committed by GitHub
parent 011776d976
commit 35b6e4cde3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ do
# 修改宿主机上的config.toml文件以设置StorageGB值和端口 # 修改宿主机上的config.toml文件以设置StorageGB值和端口
docker exec $container_id bash -c "\ docker exec $container_id bash -c "\
sed -i 's/^[[:space:]]*#StorageGB = .*/StorageGB = $storage_gb/' /root/.titanedge/config.toml && \ sed -i 's/^[[:space:]]*#StorageGB = .*/StorageGB = $storage_gb/' /root/.titanedge/config.toml && \
sed -i 's/^[[:space:]]*#ListenAddress = \"0.0.0.0:1234\"/#ListenAddress = \"0.0.0.0:$current_rpc_port\"/' /root/.titanedge/config.toml && \ sed -i 's/^[[:space:]]*#ListenAddress = \"0.0.0.0:1234\"/ListenAddress = \"0.0.0.0:$current_rpc_port\"/' /root/.titanedge/config.toml && \
echo '容器 titan'$i' 的存储空间设置为 $storage_gb GBRPC 端口设置为 $current_rpc_port'" echo '容器 titan'$i' 的存储空间设置为 $storage_gb GBRPC 端口设置为 $current_rpc_port'"
done done