Xray-1.2.14

[fix] 修复卸载功能中 Nginx 卸载不完全的问题
pull/360/head
wulabing 2021-06-09 19:42:03 +08:00
parent fcc90b4d35
commit d92610983e
No known key found for this signature in database
GPG Key ID: 213391AFDF73AE00
1 changed files with 7 additions and 2 deletions

View File

@ -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
}