diff --git a/cockpit/cockpit-uninstaller.sh b/cockpit/cockpit-uninstaller.sh index 20b8d1c..d11d23e 100644 --- a/cockpit/cockpit-uninstaller.sh +++ b/cockpit/cockpit-uninstaller.sh @@ -10,7 +10,7 @@ systemctl stop fail2ban 2>/dev/null || true echo "[*] REMOVING PACKAGES..." -apt purge -y cockpit cockpit-bridge cockpit-ws cockpit-system fail2ban ufw || true +apt purge -y cockpit cockpit-bridge cockpit-ws cockpit-system || true apt autoremove -y --purge echo "[*] REMOVING COCKPIT FILES..." @@ -28,16 +28,10 @@ rm -f /usr/local/bin/selfcert-renew.sh rm -f /etc/cron.d/selfcert-renew rm -f /var/log/selfcert-renew.log -echo "[*] CLEANING FAIL2BAN CONFIGS..." +echo "[*] CLEANING COCKPIT SPECIFIC FAIL2BAN CONFIG..." -rm -f /etc/fail2ban/jail.local -rm -f /etc/fail2ban/jail.d/cockpit.conf rm -f /etc/fail2ban/filter.d/cockpit.conf -echo "[*] CLEANING UFW RULES..." - -ufw --force reset || true - echo "[*] RESETTING SYSTEMD..." systemctl daemon-reload