diff --git a/install.sh b/install.sh index 9124ed9..ae8ee97 100644 --- a/install.sh +++ b/install.sh @@ -228,7 +228,7 @@ modify_UUID(){ echo -e "${GreenBG} UUID:${UUID} ${Font}" } modify_nginx_port(){ - sed -i "1,/listen/{s#listen#listen ${port} ssl http2;#}" ${nginx_conf} + sed -i "/listen/c \\\tlisten ${port} ssl http2" ${nginx_conf} judge "V2ray port 修改" echo -e "${GreenBG} 端口号:${port} ${Font}" } @@ -591,10 +591,10 @@ show_error_log(){ [ -f ${v2ray_error_log} ] && tail -f ${v2ray_error_log} || echo -e "${RedBG}log文件不存在${Font}" } ssl_update_manuel(){ - [ -f ${amce_sh_file} ] && "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" || echo -e "${RedBG}证书签发工具不存在${Font}" + [ -f ${amce_sh_file} ] && "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" || echo -e "${RedBG}证书签发工具不存在,请确认你是否使用了自己的证书${Font}" } bbr_boost_sh(){ - bash <(curl -L -s "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh") + bash <(curl -L -s -k "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh") } uninstall_all(){ [[ -f $nginx_systemd_file ]] && rm -f $nginx_systemd_file @@ -671,14 +671,15 @@ menu(){ echo -e "${Green}3.${Font} 变更 UUID" echo -e "${Green}4.${Font} 变更 alterid" echo -e "${Green}5.${Font} 变更 port" - echo -e "—————————————— 查看日志 ——————————————" + echo -e "—————————————— 查看信息 ——————————————" echo -e "${Green}6.${Font} 查看 实时访问日志" echo -e "${Green}7.${Font} 查看 实时错误日志" + echo -e "${Green}8.${Font} 查看 V2Ray 配置信息" echo -e "—————————————— 其他选项 ——————————————" - echo -e "${Green}8.${Font} 安装 4合1 bbr 锐速安装脚本" - echo -e "${Green}9.${Font} 证书 有效期更新" - echo -e "${Green}10.${Font} 卸载 V2Ray" - echo -e "${Green}11.${Font} 退出 \n" + echo -e "${Green}9.${Font} 安装 4合1 bbr 锐速安装脚本" + echo -e "${Green}10.${Font} 证书 有效期更新" + echo -e "${Green}11.${Font} 卸载 V2Ray" + echo -e "${Green}12.${Font} 退出 \n" read -p "请输入数字:" menu_num case $menu_num in @@ -707,15 +708,18 @@ menu(){ show_error_log ;; 8) - bbr_boost_sh + maintain "由于无法显示修改后的信息,该功能正在重构" ;; 9) - ssl_update_manuel + bbr_boost_sh ;; 10) - uninstall_all + ssl_update_manuel ;; 11) + uninstall_all + ;; + 12) exit 0 ;; *)