From 23ab7ceeaddea9ca02312a53089e91a313758083 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Fri, 12 Mar 2021 16:06:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9M?= =?UTF-8?q?TPROTO=E5=8F=AF=E5=8D=95=E7=8B=AC=E5=AE=89=E8=A3=85=E3=80=81?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=8D=B8=E8=BD=BD=E8=84=9A=E6=9C=AC=E6=97=B6?= =?UTF-8?q?=E5=8D=B8=E8=BD=BDMTPROTO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 6315758..b017b99 100644 --- a/install.sh +++ b/install.sh @@ -2231,8 +2231,14 @@ unInstall() { handleV2Ray stop handleTrojanGo stop + handleMTG stop + rm -rf /etc/systemd/system/v2ray.service echoContent green " ---> 删除V2Ray开机自启完成" + + rm -rf /etc/systemd/system/mtg.service + echoContent green " ---> 删除MTG开机自启完成" + rm -rf /etc/systemd/system/trojan-go.service echoContent green " ---> 删除Trojan-Go开机自启完成" rm -rf /tmp/v2ray-agent-tls/* @@ -3381,11 +3387,6 @@ subscribe() { # 安装MT setMTG() { - if [[ -z "${configPath}" ]]; then - echoContent red " ---> 未安装,请使用脚本安装" - menu - exit 0 - fi echoContent skyBlue "\n功能 1/${totalProgress} : 设置MTPROTO[FAKE TLS]" echoContent skyBlue "-------------------------备注---------------------------------" echoContent yellow "# 使用MTPROTO有被阻断的风险,请熟知其中的风险" @@ -3413,8 +3414,8 @@ setMTG() { # 卸载MTG unInstallMTG() { - if [[ -z "${coreInstallType}" ]]; then - echoContent red "\n ---> 没有检测到安装目录,请执行脚本安装内容" + if [[ ! -f "/etc/v2ray-agent/mtg/mtg" ]]; then + echoContent red "\n ---> 没有检测到MTG" menu exit 0 fi @@ -3483,7 +3484,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.4.1" + echoContent green "当前版本:v2.4.2" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:七合一共存脚本" echoContent red "=============================================================="