From 4345878a81803dc7998c3d02389b522d25ffab79 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Mon, 23 Dec 2019 18:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index dc7a119..9124ed9 100644 --- a/install.sh +++ b/install.sh @@ -214,6 +214,7 @@ modify_path(){ modify_alterid(){ sed -i "/\"alterId\"/c \\\t \"alterId\":${alterID}" ${v2ray_conf} judge "V2ray alterid 修改" + echo -e "${GreenBG} alterID:${alterID} ${Font}" } modify_inbound_port(){ let PORT=$RANDOM+10000 @@ -221,14 +222,15 @@ modify_inbound_port(){ judge "V2ray inbound_port 修改" } modify_UUID(){ - UUID=$(cat /proc/sys/kernel/random/uuid) + [ -z $UUID ] && UUID=$(cat /proc/sys/kernel/random/uuid) sed -i "/\"id\"/c \\\t \"id\":\"${UUID}\"," ${v2ray_conf} judge "V2ray UUID 修改" + echo -e "${GreenBG} UUID:${UUID} ${Font}" } modify_nginx_port(){ sed -i "1,/listen/{s#listen#listen ${port} ssl http2;#}" ${nginx_conf} judge "V2ray port 修改" - + echo -e "${GreenBG} 端口号:${port} ${Font}" } modify_nginx_other(){ sed -i "/server_name/c \\\tserver_name ${domain};" ${nginx_conf} @@ -681,7 +683,7 @@ menu(){ read -p "请输入数字:" menu_num case $menu_num in 0) - maintain + update_sh ;; 1) install_v2ray_ws_tls @@ -713,7 +715,7 @@ menu(){ 10) uninstall_all ;; - 111) + 11) exit 0 ;; *)