Nginx 逻辑修改

pull/355/head
wulabing 2019-11-24 01:29:24 +08:00
parent 4bb36b5e19
commit 49f11cc254
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@ v2ray_install(){
rm -rf /root/v2ray
}
nginx_exist_chek(){
if [[ -d "/etc/nginx" ]];then
echo -e "${OK} ${GreenBG} Nginx目录已存在,跳过编译安装过程 ${Font}"
if [[ -f "/etc/nginx/sbin/nginx" ]];then
echo -e "${OK} ${GreenBG} Nginx已存在,跳过编译安装过程 ${Font}"
sleep 2
else
nginx_install