diff --git a/killall.sh b/killall.sh index 3cc9257..3c97c37 100755 --- a/killall.sh +++ b/killall.sh @@ -14,14 +14,26 @@ if [ "${answer}" != "${answer#[Yy]}" ] ;then echo "Purging containers data" docker system prune -a -f - echo "Purging directories" - rm -rf /etc/nginx /etc/turn* /etc/default/coturn /etc/systemd/system/matrix.service /opt/matrix /tmp/matrix /tmp/homeserver.yaml - - echo "Purging directories" + echo "Removing packages" apt remove -y --purge pwgen nginx python3-certbot-nginx coturn* docker* - systemctl daemon-reload + echo "Purging files and directories" + rm -rf \ + /etc/nginx \ + /etc/turn* \ + /etc/default/coturn \ + /etc/systemd/system/matrix.service \ + /opt/matrix \ + /tmp/matrix \ + /tmp/homeserver.yaml \ + /etc/letsencrypt \ + /tmp/*.zip + + echo "Uninstalling and disabling firewall rules" + ufw disable + apt remove -y --purge ufw + echo "Purging finished" else echo "KillAll aborted"