修复双版本间逻辑问题

修复判等逻辑错误
pull/355/head
wulabing 2019-12-30 16:25:19 +08:00
parent 39ec3e7468
commit 31df173745
1 changed files with 4 additions and 4 deletions

View File

@ -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