update
This commit is contained in:
parent
af2ca1e4f4
commit
a97a5bc02a
@ -23,11 +23,15 @@ run() {
|
|||||||
bash "$script_dir/create_config.sh" # 创建配置
|
bash "$script_dir/create_config.sh" # 创建配置
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 如果容器已经启动, 则先停止容器
|
||||||
|
local compose_file="$script_dir/../docker-compose.yml"
|
||||||
|
if docker-compose -f "$compose_file" ps | grep -q "Up"; then
|
||||||
|
docker-compose -f "$compose_file" down
|
||||||
|
fi
|
||||||
|
|
||||||
# 启动docker容器
|
# 启动docker容器
|
||||||
docker-compose -f "$script_dir/../docker-compose.yml" up -d
|
docker-compose -f "$script_dir/../docker-compose.yml" up -d
|
||||||
|
|
||||||
# 打印分享链接
|
|
||||||
bash "$script_dir/print_share_link.sh"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run # 启动容器
|
run # 启动容器
|
||||||
|
|||||||
@ -51,21 +51,20 @@ case $choice in
|
|||||||
# 一键部署
|
# 一键部署
|
||||||
install
|
install
|
||||||
bash ./bin/run.sh
|
bash ./bin/run.sh
|
||||||
|
bash ./bin/print_share_link.sh
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
# 生成配置
|
# 生成配置
|
||||||
echo "重新生成配置.."
|
|
||||||
bash ./bin/create_config.sh
|
bash ./bin/create_config.sh
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
# 查看分享链接
|
# 查看分享链接
|
||||||
echo "查看分享链接.."
|
|
||||||
bash ./bin/print_share_link.sh
|
bash ./bin/print_share_link.sh
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
# 启动容器
|
# 启动容器
|
||||||
echo "启动容器.."
|
|
||||||
bash ./bin/run.sh
|
bash ./bin/run.sh
|
||||||
|
bash ./bin/print_share_link.sh
|
||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
# 停止容器
|
# 停止容器
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user