From bd9a390dd7261f50a81127b7a136dde1d615ba0e Mon Sep 17 00:00:00 2001 From: AaronYES <105576821+AaronYES@users.noreply.github.com> Date: Sun, 15 May 2022 17:01:15 +0800 Subject: [PATCH] Update aapanel.sh --- aapanel.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/aapanel.sh b/aapanel.sh index 1d0ef8e..4f9e6e9 100644 --- a/aapanel.sh +++ b/aapanel.sh @@ -55,17 +55,24 @@ sed -i 's|"pro": -1|"pro": 0|g' /www/server/panel/data/plugin.json red "好开心 ٩(ˊᗜˋ*)و." } -## 清理垃圾 +# 清理垃圾 function clean-up-trash(){ -rm LinuxPanel_EN-6.8.23.zip aapanel-install.sh panel/ -rf +rm LinuxPanel_EN-6.8.23.zip aapanel-install.sh bt-uninstall.sh panel/ -rf red "清理成功." red "如果想删除此脚本 请执行 rm aapanel.sh -rf ." } +# 卸载aaPanel +function uninstall(){ +wget -O "/root/bt-uninstall.sh" "http://download.bt.cn/install/bt-uninstall.sh" +bash "/root/bt-uninstall.sh" +red "卸载aaPanel成功." +} + # 菜单 function start_menu(){ clear - purple " aaPanel 小助手" + purple " 感谢使用aaPanel小助手,好用请Star." purple " https://github.com/AaronYES/aapanel" yellow " ==================================================" green " 1. CentOS/Debian/Ubuntu 安装 aaPanel" @@ -74,6 +81,7 @@ function start_menu(){ green " 3. 降级 6.8.23 版本 aaPanel(GitHub仓库)" green " 4. 开心一下٩(ˊᗜˋ*)و" yellow " ==================================================" + green " 8. 卸载 aaPanel" green " 9. 清理脚本产生垃圾文件" green " 0. 退出脚本" echo @@ -91,6 +99,9 @@ function start_menu(){ 4 ) aapanel-happy ;; + 8 ) + uninstall + ;; 9 ) clean-up-trash ;;