修复双版本间逻辑问题

修复start systemd 逻辑错误
pull/355/head
wulabing 2019-12-30 15:30:44 +08:00
parent 2c26640c41
commit 54cfbe737e
1 changed files with 2 additions and 2 deletions

View File

@ -475,7 +475,7 @@ judge "Nginx 配置修改"
start_process_systemd(){ start_process_systemd(){
systemctl daemon-reload systemctl daemon-reload
if [[ "$shell_mode" -eq "h2" ]] if [[ "$shell_mode" -ne "h2" ]]
then then
systemctl restart nginx systemctl restart nginx
judge "Nginx 启动" judge "Nginx 启动"
@ -487,7 +487,7 @@ start_process_systemd(){
enable_process_systemd(){ enable_process_systemd(){
systemctl enable v2ray systemctl enable v2ray
judge "设置 v2ray 开机自启" judge "设置 v2ray 开机自启"
if [[ "$shell_mode" -eq "h2" ]] if [[ "$shell_mode" -ne "h2" ]]
then then
systemctl enable nginx systemctl enable nginx
judge "设置 Nginx 开机自启" judge "设置 Nginx 开机自启"