From 48604a2692fca01a06f144df63a7e6fc40ce6640 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Thu, 9 Oct 2025 22:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Reality=E7=9B=AE=E6=A0=87?= =?UTF-8?q?=E5=9F=9F=E5=90=8D,=20=E9=87=8D=E5=90=AFdocker=E5=AE=B9?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/update_reality_dest.sh | 9 --------- install.sh | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/bin/update_reality_dest.sh b/bin/update_reality_dest.sh index d1f6d8f..79b2d33 100644 --- a/bin/update_reality_dest.sh +++ b/bin/update_reality_dest.sh @@ -35,12 +35,3 @@ echo "配置文件修改成功!" echo "新的dest地址为: $dest" echo "新的serverNames数组为: [\"$domain\"]" - -read -p "是否要重启容器? (y/N): " restart_choice -if [[ "$restart_choice" =~ ^[Yy]$ ]]; then - echo "正在重启容器..." - docker-compose -f "$script_dir/../docker-compose.yml" down - docker-compose -f "$script_dir/../docker-compose.yml" up -d -else - echo "已跳过重启,请手动重启容器使配置生效" -fi \ No newline at end of file diff --git a/install.sh b/install.sh index 4fd3562..f7cafe3 100644 --- a/install.sh +++ b/install.sh @@ -49,6 +49,7 @@ main(){ 6) # 修改Reality目标域名 bash ./bin/update_reality_dest.sh + restart_docker ;; 0) # 退出