From e08988f807e0c9d9f4f5c2eca196228ca06f7073 Mon Sep 17 00:00:00 2001 From: wulabing Date: Sat, 15 Feb 2020 16:28:20 +0800 Subject: [PATCH] =?UTF-8?q?1.1.0=20Nginx=20=E5=86=B2=E7=AA=81=E6=A3=80?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 1562556..c4e7b32 100644 --- a/install.sh +++ b/install.sh @@ -300,6 +300,10 @@ nginx_exist_check(){ if [[ -f "/etc/nginx/sbin/nginx" ]];then echo -e "${OK} ${GreenBG} Nginx已存在,跳过编译安装过程 ${Font}" sleep 2 + elif [[ -d "/usr/local/nginx/" ]] + then + echo -e "${OK} ${GreenBG} 检测到其他套件安装的Nginx,继续安装会造成冲突,请处理后安装${Font}" + exit 1 else nginx_install fi