From 31df17374521f1ea81c0907fd9215963339b8a60 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Mon, 30 Dec 2019 16:25:19 +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 修复判等逻辑错误 --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 1cb9792..46cb1ab 100644 --- a/install.sh +++ b/install.sh @@ -224,7 +224,7 @@ modify_alterid(){ echo -e "${GreenBG} alterID:${alterID} ${Font}" } modify_inbound_port(){ - if [[ "$shell_mode" -ne "h2" ]] + if [[ "$shell_mode" != "h2" ]] then let PORT=$RANDOM+10000 sed -i "/\"port\"/c \ \"port\":${PORT}," ${v2ray_conf} @@ -475,7 +475,7 @@ judge "Nginx 配置修改" start_process_systemd(){ systemctl daemon-reload - if [[ "$shell_mode" -ne "h2" ]] + if [[ "$shell_mode" != "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" -ne "h2" ]] + if [[ "$shell_mode" != "h2" ]] then systemctl enable nginx judge "设置 Nginx 开机自启" @@ -496,7 +496,7 @@ enable_process_systemd(){ } stop_process_systemd(){ - if [[ "$shell_mode" -ne "h2" ]] + if [[ "$shell_mode" != "h2" ]] then systemctl stop nginx fi