Skip to content

Commit

Permalink
better purge
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jun 30, 2024
1 parent e430066 commit 568a995
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
cd $(dirname -- "$0")
function main(){
for s in netdata other/**/*.service **/*.service nginx;do
s=${s##*/}
Expand All @@ -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
}
Expand Down

0 comments on commit 568a995

Please sign in to comment.