From f8ef26ec9879252911c470d24b3de466e4fea5fd Mon Sep 17 00:00:00 2001 From: wulabing Date: Sun, 24 Nov 2019 00:37:10 +0800 Subject: [PATCH] =?UTF-8?q?Nginx=20=E5=AE=89=E8=A3=85=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index aa1dd4a..c78a339 100644 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ # Author: wulabing # Dscription: V2ray ws+tls onekey # Version: 5.1 -# email:wulabing@admin.com +# email:admin@wulabing.com # Official document: www.v2ray.com #==================================================== @@ -226,10 +226,18 @@ v2ray_install(){ # 清除临时文件 rm -rf /root/v2ray } -nginx_install(){ +nginx_exist_chek(){ if [[ -d "/etc/nginx" ]];then - rm -rf /etc/nginx + echo -e "${OK} ${GreenBG} Nginx目录已存在,跳过编译安装过程 ${Font}" + sleep 2 + else + nginx_install fi +} +nginx_install(){ +# if [[ -d "/etc/nginx" ]];then +# rm -rf /etc/nginx +# fi wget -nc http://nginx.org/download/nginx-${nginx_version}.tar.gz -P ${nginx_openssl_src} judge "Nginx 下载" @@ -515,7 +523,7 @@ main(){ v2ray_install port_exist_check 80 port_exist_check ${port} - nginx_install + nginx_exist_chek v2ray_conf_add nginx_conf_add web_camouflage