From 54cfbe737e6802afb91585776097e800fb5e2895 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Mon, 30 Dec 2019 15:30:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=8C=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E9=97=B4=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复start systemd 逻辑错误 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 96aadf0..51e84bd 100644 --- a/install.sh +++ b/install.sh @@ -475,7 +475,7 @@ judge "Nginx 配置修改" start_process_systemd(){ systemctl daemon-reload - if [[ "$shell_mode" -eq "h2" ]] + if [[ "$shell_mode" -ne "h2" ]] then systemctl restart nginx judge "Nginx 启动" @@ -487,7 +487,7 @@ start_process_systemd(){ enable_process_systemd(){ systemctl enable v2ray judge "设置 v2ray 开机自启" - if [[ "$shell_mode" -eq "h2" ]] + if [[ "$shell_mode" -ne "h2" ]] then systemctl enable nginx judge "设置 Nginx 开机自启"