mirror of https://github.com/wulabing/Xray_onekey
parent
730abfca2f
commit
0e1e8d8d99
15
install.sh
15
install.sh
|
@ -468,8 +468,11 @@ judge "Nginx 配置修改"
|
||||||
|
|
||||||
start_process_systemd(){
|
start_process_systemd(){
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart nginx
|
if [[ -n $(grep "ws" $v2ray_qr_config_file) ]]
|
||||||
judge "Nginx 启动"
|
then
|
||||||
|
systemctl restart nginx
|
||||||
|
judge "Nginx 启动"
|
||||||
|
fi
|
||||||
systemctl restart v2ray
|
systemctl restart v2ray
|
||||||
judge "V2ray 启动"
|
judge "V2ray 启动"
|
||||||
}
|
}
|
||||||
|
@ -477,8 +480,12 @@ start_process_systemd(){
|
||||||
enable_process_systemd(){
|
enable_process_systemd(){
|
||||||
systemctl enable v2ray
|
systemctl enable v2ray
|
||||||
judge "设置 v2ray 开机自启"
|
judge "设置 v2ray 开机自启"
|
||||||
systemctl enable nginx
|
if [[ -n $(grep "ws" $v2ray_qr_config_file) ]]
|
||||||
judge "设置 Nginx 开机自启"
|
then
|
||||||
|
systemctl enable nginx
|
||||||
|
judge "设置 Nginx 开机自启"
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_process_systemd(){
|
stop_process_systemd(){
|
||||||
|
|
Loading…
Reference in New Issue