mirror of https://github.com/wulabing/Xray_onekey
parent
39ec3e7468
commit
31df173745
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue