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