From 0bcebd4dde9a632e66bc339c186767dccc837ba8 Mon Sep 17 00:00:00 2001 From: wulabing Date: Fri, 7 Feb 2020 14:30:19 +0800 Subject: [PATCH] =?UTF-8?q?1.0.7=20=E5=8D=B8=E8=BD=BD=E6=8F=90=E4=BE=9B=20?= =?UTF-8?q?Nginx=20=E4=BF=9D=E7=95=99=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 52955de..b0096c0 100644 --- a/install.sh +++ b/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