diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..27d760c --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "🔧 Deinstalliere Fail2Ban Discord Alert..." + +# Stoppe und entferne systemd-Service +sudo systemctl stop fail2ban_discord_alert.service +sudo systemctl disable fail2ban_discord_alert.service +sudo rm -f /etc/systemd/system/fail2ban_discord_alert.service +sudo systemctl daemon-reload + +# Lösche Python venv, DB, .env +rm -rf venv +rm -f bans.db +rm -f .env + +echo "✅ Deinstallation abgeschlossen."