From 568a995f5937e8c87f2a651600366236c7e063a1 Mon Sep 17 00:00:00 2001 From: hiddify-com <114227601+hiddify-com@users.noreply.github.com> Date: Sun, 30 Jun 2024 13:15:33 +0330 Subject: [PATCH] better purge --- uninstall.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index 401bef754..c9f8a9029 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,5 @@ #!/bin/bash +cd $(dirname -- "$0") function main(){ for s in netdata other/**/*.service **/*.service nginx;do s=${s##*/} @@ -9,8 +10,9 @@ function main(){ rm -rf /etc/cron.d/hiddify* service cron reload if [[ "$1" == "purge" ]];then - cd .. && rm -rf hiddify-panel - apt remove -y nginx gunicorn #python3-pip python3 + rm -rf hiddify-panel + apt purge -y nginx gunicorn mariadb-* #python3-pip python3 + rm -rf * echo "We have completely removed hiddify panel" fi }