This commit is contained in:
Konano 2025-08-29 19:28:22 +08:00
parent 96ac630b29
commit d6efa4b8af
Signed by: Nano
GPG Key ID: 93686B78EE43A65A

View File

@ -316,6 +316,7 @@ configure_nginx() {
fi
if confirm_action "要安装 nginx 吗?" "Y"; then
if command_exists nginx && ! confirm_action "检测到旧版 nginx 的存在 ($(nginx -v 2>&1)),是否继续安装?" "N"; then
# sudo apt-get remove nginx -y
return
fi
sudo apt-get update