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 }