From 7a49fb0f856948491832a6005904da82a60a6c1b Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 19 Dec 2023 16:33:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E7=A7=BB=E5=8A=A81?= =?UTF-8?q?9=E6=9F=A5=E7=9C=8B=E6=97=A5=E5=BF=97=E5=88=B0xray-core?= =?UTF-8?q?=E5=86=85=E6=A0=B8=E7=AE=A1=E7=90=86=E3=80=81=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=AE=89=E8=A3=85=E6=8F=90=E7=A4=BA=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E6=97=A0=E8=AF=81=E4=B9=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index a616d15..b910c9e 100644 --- a/install.sh +++ b/install.sh @@ -2072,9 +2072,8 @@ v2rayVersionManageMenu() { # xray版本管理 xrayVersionManageMenu() { echoContent skyBlue "\n进度 $1/${totalProgress} : Xray版本管理" - if [[ ! -d "/etc/v2ray-agent/xray/" ]]; then + if [[ "${coreInstallType}" != "1" ]]; then echoContent red " ---> 没有检测到安装目录,请执行脚本安装内容" - menu exit 0 fi echoContent red "\n==============================================================" @@ -2086,6 +2085,7 @@ xrayVersionManageMenu() { echoContent yellow "6.重启Xray-core" echoContent yellow "7.更新geosite、geoip" echoContent yellow "8.设置自动更新geo文件[每天凌晨更新]" + echoContent yellow "9.查看日志" echoContent red "==============================================================" read -r -p "请选择:" selectXrayType if [[ "${selectXrayType}" == "1" ]]; then @@ -2119,6 +2119,8 @@ xrayVersionManageMenu() { updateGeoSite elif [[ "${selectXrayType}" == "8" ]]; then installCronUpdateGeo + elif [[ "${selectXrayType}" == "9" ]]; then + checkLog 1 fi } @@ -7154,10 +7156,11 @@ installSubscribe() { if [[ "${coreInstallType}" == "2" || "${selectCoreType}" == "2" ]] && [[ -z "${subscribePort}" ]]; then nginxVersion=$(nginx -v 2>&1) - echoContent skyBlue "配置订阅中\n" + echoContent yellow " ---> 配置订阅中\n" mapfile -t result < <(initSingBoxPort "${subscribePort}") - if ! echo "${selectCustomInstallType}" | grep -q -E "0|1|2|3|4|5|6|9" || ! echo "${currentInstallProtocolType}" | grep -q -E "0|1|2|3|4|5|6|9"; then + + if (! echo "${selectCustomInstallType}" | grep -q -E "0|1|2|3|4|5|6|9" || ! echo "${currentInstallProtocolType}" | grep -q -E "0|1|2|3|4|5|6|9") && [[ "${selectInstallType}" == "2" ]]; then echoContent green "未发现tls证书,使用无加密订阅,可能被运营商拦截。请注意风险" read -r -p "是否使用[y/n]?" addNginxSubscribeStatus if [[ "${addNginxSubscribeStatus}" != "y" ]]; then @@ -8202,7 +8205,7 @@ hysteriaVersionManageMenu() { # sing-box 版本管理 singBoxVersionManageMenu() { echoContent skyBlue "\n进度 $1/${totalProgress} : sing-box 版本管理" - if [[ ! -f "/etc/v2ray-agent/sing-box/sing-box" ]]; then + if [[ -z "${singBoxConfigPath}" ]]; then echoContent red " ---> 没有检测到安装程序,请执行脚本安装内容" menu exit 0 @@ -8226,6 +8229,9 @@ singBoxVersionManageMenu() { echoContent red "==============================================================" read -r -p "请选择:" selectSingBoxType + if [[ ! -f "${singBoxConfigPath}../box.log" ]]; then + touch "${singBoxConfigPath}../box.log" >/dev/null 2>&1 + fi if [[ "${selectSingBoxType}" == "1" ]]; then installSingBox 1 handleSingBox start @@ -8251,7 +8257,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v3.1.8-beta" + echoContent green "当前版本:v3.1.9-beta" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus @@ -8285,7 +8291,7 @@ menu() { echoContent yellow "17.更新脚本" echoContent yellow "18.安装BBR、DD脚本" echoContent skyBlue "-------------------------脚本管理-----------------------------" - echoContent yellow "19.查看日志" + # echoContent yellow "19.查看日志" echoContent yellow "20.卸载脚本" echoContent red "==============================================================" mkdirTools @@ -8346,9 +8352,9 @@ menu() { 18) bbrInstall ;; - 19) - checkLog 1 - ;; + # 19) + # checkLog 1 + # ;; 20) unInstall 1 ;;