mirror of https://github.com/wulabing/Xray_onekey
parent
fcc90b4d35
commit
d92610983e
|
@ -27,7 +27,7 @@ OK="${Green}[OK]${Font}"
|
||||||
ERROR="${Red}[ERROR]${Font}"
|
ERROR="${Red}[ERROR]${Font}"
|
||||||
|
|
||||||
# 变量
|
# 变量
|
||||||
shell_version="1.2.13"
|
shell_version="1.2.14"
|
||||||
github_branch="main"
|
github_branch="main"
|
||||||
xray_conf_dir="/usr/local/etc/xray"
|
xray_conf_dir="/usr/local/etc/xray"
|
||||||
website_dir="/www/xray_web/"
|
website_dir="/www/xray_web/"
|
||||||
|
@ -458,8 +458,13 @@ function configure_web() {
|
||||||
|
|
||||||
function xray_uninstall() {
|
function xray_uninstall() {
|
||||||
curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh | bash -s -- remove --purge
|
curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh | bash -s -- remove --purge
|
||||||
systemctl stop nginx
|
|
||||||
rm -rf $website_dir
|
rm -rf $website_dir
|
||||||
|
if [[ "${ID}" == "centos" ]]; then
|
||||||
|
yum remove nginx -y
|
||||||
|
rm -rf /etc/nginx
|
||||||
|
else
|
||||||
|
apt purge nginx -y
|
||||||
|
fi
|
||||||
print_ok "卸载完成"
|
print_ok "卸载完成"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue