From d5592cf0f3a62dfae9f52858f78a362cc7f4578d Mon Sep 17 00:00:00 2001 From: CREATIVE_tg1 Date: Sun, 12 Apr 2026 13:41:49 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20cockpit/cockpit-uninstaller.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cockpit/cockpit-uninstaller.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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