From e2326e50c906b7d18870262e872a22d3b492f8c4 Mon Sep 17 00:00:00 2001 From: wangbo Date: Sun, 22 Mar 2026 21:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E7=AD=BEHTTPS?= =?UTF-8?q?=E4=BC=9A=E9=80=80=E5=87=BA=E8=84=9A=E6=9C=AC=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index f58525e..0e3e1b1 100755 --- a/start.sh +++ b/start.sh @@ -101,7 +101,9 @@ run_deploy_questions() { else read -r -p "3.1 是否启用 HTTPS?[y/N]: " https_choice DEPLOY_HTTPS=false - [[ "$https_choice" =~ ^[yY] ]] && DEPLOY_HTTPS=true + if [[ "$https_choice" =~ ^[yY] ]]; then + DEPLOY_HTTPS=true + fi fi [ "$DEPLOY_HTTPS" = true ] && echo " 启用 HTTPS 需确保防火墙已放行 80、443 端口" fi