重构代码
This commit is contained in:
parent
00cdf70b0b
commit
dd0de70578
10
install.sh
10
install.sh
@ -99,20 +99,20 @@ main(){
|
|||||||
1)
|
1)
|
||||||
# 创建配置 / 重置配置
|
# 创建配置 / 重置配置
|
||||||
check_dependencies
|
check_dependencies
|
||||||
bash ./bin/create_config.sh
|
bash $script_dir/create_config.sh
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
# 启动容器
|
# 启动容器
|
||||||
echo "启动容器.."
|
echo "启动容器.."
|
||||||
check_dependencies
|
check_dependencies
|
||||||
bash ./bin/run.sh
|
bash $script_dir/run.sh
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
# 查看分享链接
|
# 查看分享链接
|
||||||
echo "查看分享链接.."
|
echo "查看分享链接.."
|
||||||
check_dependencies
|
check_dependencies
|
||||||
check_config
|
check_config
|
||||||
bash ./bin/print_share_link.sh
|
bash $script_dir/print_share_link.sh
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
# 停止容器
|
# 停止容器
|
||||||
@ -121,13 +121,13 @@ main(){
|
|||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
# 更新镜像
|
# 更新镜像
|
||||||
bash ./bin/update_docker_images.sh
|
bash $script_dir/update_docker_images.sh
|
||||||
;;
|
;;
|
||||||
6)
|
6)
|
||||||
# 修改端口
|
# 修改端口
|
||||||
check_dependencies
|
check_dependencies
|
||||||
check_config
|
check_config
|
||||||
bash ./bin/update_port.sh
|
bash $script_dir/update_port.sh
|
||||||
restart_docker
|
restart_docker
|
||||||
;;
|
;;
|
||||||
7)
|
7)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user