From 35a9f84893cfa70c40e6d4d1924ace7ff80372da Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Sat, 8 Feb 2025 22:02:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E9=80=89=E9=A1=B9=E5=B9=B6=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=80=80=E5=87=BA=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 67c52cc..8b6749c 100644 --- a/install.sh +++ b/install.sh @@ -6,7 +6,8 @@ echo "1. 启动容器" echo "2. 查看分享链接" echo "3. 停止容器" echo "4. 更新镜像" -echo "5. 退出" +echo "5. 更新端口" +echo "0. 退出" # 读取用户选择 read -p "输入您的选择: " choice @@ -14,21 +15,30 @@ read -p "输入您的选择: " choice # 根据用户选择执行相应的操作 case $choice in 1) + # 启动容器 echo "启动容器.." bash ./bin/run.sh ;; 2) + # 查看分享链接 echo "查看分享链接.." bash ./bin/print_share_link.sh ;; 3) + # 停止容器 echo "正在停止容器.." docker-compose -f ./docker-compose.yml down ;; 4) + # 更新镜像 bash ./bin/update_docker_images.sh ;; 5) + # 更新端口 + bash ./bin/update_port.sh + ;; + 0) + # 退出 echo "退出程序." ;; *)