diff --git a/duokai.sh b/duokai.sh index 778e6bc..9d9d719 100644 --- a/duokai.sh +++ b/duokai.sh @@ -72,7 +72,7 @@ do # 修改宿主机上的config.toml文件以设置StorageGB值和端口 docker exec $container_id bash -c "\ 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 GB,RPC 端口设置为 $current_rpc_port'" done