diff --git a/install.sh b/install.sh index c7d80cd..4068fc2 100644 --- a/install.sh +++ b/install.sh @@ -57,10 +57,10 @@ main(){ echo "1. 一键部署" echo "2. 生成配置 / 重置配置" echo "3. 查看分享链接" - echo "4. 修改域名" - echo "5. 修改端口" - echo "6. 启动容器" - echo "7. 停止容器" + echo "4. 启动" + echo "5. 停止" + echo "6. 修改域名" + echo "7. 修改端口" echo "8. 更新镜像" echo "9. 更新脚本" @@ -88,29 +88,29 @@ main(){ print_share_link ;; 4) - # 修改域名 - check_config_file - update_domain - restart_docker - ;; - 5) - # 修改端口 - check_config_file - ask_update_port - port_manage allow $(get_listen_port) # 开放端口 - restart_docker - ;; - 6) - # 启动容器 + # 启动 check_config_file port_manage allow $(get_listen_port) # 开放端口 run print_share_link ;; - 7) - # 停止容器 + 5) + # 停止 docker compose -f ./docker-compose.yml down ;; + 6) + # 修改域名 + check_config_file + update_domain + restart_docker + ;; + 7) + # 修改端口 + check_config_file + ask_update_port + port_manage allow $(get_listen_port) # 开放端口 + restart_docker + ;; 8) # 更新镜像 update_docker_images