mirror of https://github.com/wulabing/Xray_onekey
1.0.7 卸载提供 Nginx 保留选项
parent
734081675f
commit
0bcebd4dde
14
install.sh
14
install.sh
|
@ -684,7 +684,19 @@ uninstall_all(){
|
|||
[[ -f $nginx_systemd_file ]] && rm -f $nginx_systemd_file
|
||||
[[ -f $v2ray_systemd_file ]] && rm -f $v2ray_systemd_file
|
||||
[[ -d $v2ray_bin_file ]] && rm -rf $v2ray_bin_file
|
||||
[[ -d $nginx_dir ]] && rm -rf $nginx_dir
|
||||
if [[ -d $nginx_dir ]]
|
||||
then
|
||||
echo -e "${OK} ${Green} 是否卸载 Nginx [Y/N]? ${Font}"
|
||||
read -r uninstall_nginx
|
||||
case $uninstall_nginx in
|
||||
[yY][eE][sS]|[yY])
|
||||
rm -rf $nginx_dir
|
||||
echo -e "${OK} ${Green} 已卸载 Nginx ${Font}"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
[[ -d $v2ray_conf_dir ]] && rm -rf $v2ray_conf_dir
|
||||
[[ -d $web_dir ]] && rm -rf $web_dir
|
||||
systemctl daemon-reload
|
||||
|
|
Loading…
Reference in New Issue