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) # 退出