From 0e1e8d8d9912c0b4f7e21eca63fa1f8f6b695214 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Thu, 26 Dec 2019 16:32:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复在h2安装下 依然尝试启动nginx的错误 --- install.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 7d07d4b..8cd7287 100644 --- a/install.sh +++ b/install.sh @@ -468,8 +468,11 @@ judge "Nginx 配置修改" start_process_systemd(){ systemctl daemon-reload - systemctl restart nginx - judge "Nginx 启动" + if [[ -n $(grep "ws" $v2ray_qr_config_file) ]] + then + systemctl restart nginx + judge "Nginx 启动" + fi systemctl restart v2ray judge "V2ray 启动" } @@ -477,8 +480,12 @@ start_process_systemd(){ enable_process_systemd(){ systemctl enable v2ray judge "设置 v2ray 开机自启" - systemctl enable nginx - judge "设置 Nginx 开机自启" + if [[ -n $(grep "ws" $v2ray_qr_config_file) ]] + then + systemctl enable nginx + judge "设置 Nginx 开机自启" + fi + } stop_process_systemd(){