From d92610983e30267b8636e7ba04b20e9087252421 Mon Sep 17 00:00:00 2001 From: wulabing Date: Wed, 9 Jun 2021 19:42:03 +0800 Subject: [PATCH] Xray-1.2.14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [fix] 修复卸载功能中 Nginx 卸载不完全的问题 --- install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 018fe4e..6811273 100644 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ OK="${Green}[OK]${Font}" ERROR="${Red}[ERROR]${Font}" # 变量 -shell_version="1.2.13" +shell_version="1.2.14" github_branch="main" xray_conf_dir="/usr/local/etc/xray" website_dir="/www/xray_web/" @@ -458,8 +458,13 @@ function configure_web() { function xray_uninstall() { curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh | bash -s -- remove --purge - systemctl stop nginx rm -rf $website_dir + if [[ "${ID}" == "centos" ]]; then + yum remove nginx -y + rm -rf /etc/nginx + else + apt purge nginx -y + fi print_ok "卸载完成" exit 0 }