Update duokai.sh
This commit is contained in:
parent
506aa6ddee
commit
82344f7f6a
11
duokai.sh
11
duokai.sh
@ -63,15 +63,16 @@ do
|
||||
|
||||
sleep 30
|
||||
|
||||
# 进入容器并执行绑定和其他命令
|
||||
docker exec -it $container_id bash -c "\
|
||||
titan-edge bind --hash=$id https://api-test1.container1.titannet.io/api/v2/device/binding"
|
||||
|
||||
# 修改宿主机上的config.toml文件以设置StorageGB值
|
||||
# 修改宿主机上的config.toml文件以设置StorageGB值
|
||||
docker exec $container_id bash -c "\
|
||||
sed -i 's/#StorageGB = .*/StorageGB = '$storage_gb'/' /root/.titanedge/config.toml && \
|
||||
echo '容器 titan$i 的存储空间已设置为 $storage_gb GB'"
|
||||
|
||||
# 进入容器并执行绑定和其他命令
|
||||
docker exec -it $container_id bash -c "\
|
||||
titan-edge bind --hash=$id https://api-test1.container1.titannet.io/api/v2/device/binding"
|
||||
|
||||
|
||||
done
|
||||
|
||||
echo "==============================所有节点均已设置并启动===================================."
|
||||
|
Loading…
Reference in New Issue
Block a user