From ddfc7c14b6942b9009303aeb5e8f8076b93df795 Mon Sep 17 00:00:00 2001 From: wulabing Date: Sun, 23 Feb 2020 23:25:43 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=20=E6=B7=BB=E5=8A=A0=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E9=81=97=E7=95=99=E8=AF=81=E4=B9=A6=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9ed7ca4..6704e0b 100644 --- a/install.sh +++ b/install.sh @@ -805,7 +805,10 @@ uninstall_all(){ systemctl daemon-reload echo -e "${OK} ${GreenBG} 已卸载,SSL证书文件已保留 ${Font}" } - +delete_tls_key_and_crt(){ + [[ -d $HOME/.acme.sh ]] && rm -rf $HOME/.acme.sh + echo -e "${OK} ${GreenBG} 已清空证书遗留文件 ${Font}" +} judge_mode(){ if [ -f $v2ray_bin_file ] then @@ -941,7 +944,8 @@ menu(){ echo -e "${Green}13.${Font} 证书 有效期更新" echo -e "${Green}14.${Font} 卸载 V2Ray" echo -e "${Green}15.${Font} 更新 证书crontab计划任务" - echo -e "${Green}16.${Font} 退出 \n" + echo -e "${Green}16.${Font} 清空 证书遗留文件" + echo -e "${Green}17.${Font} 退出 \n" read -p "请输入数字:" menu_num case $menu_num in @@ -1012,6 +1016,9 @@ menu(){ acme_cron_update ;; 16) + delete_tls_key_and_crt + ;; + 17) exit 0 ;; *)