1.1.0 Nginx 冲突检测

pull/175/head^2
wulabing 2020-02-15 16:28:20 +08:00
parent fa936c6da3
commit e08988f807
1 changed files with 4 additions and 0 deletions

View File

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