修复不签HTTPS会退出脚本的问题

This commit is contained in:
wangbo 2026-03-22 21:52:21 +08:00
parent 0bd8c4f359
commit e2326e50c9

View File

@ -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