Обновить cockpit/cockpit-uninstaller.sh
This commit is contained in:
@@ -10,7 +10,7 @@ systemctl stop fail2ban 2>/dev/null || true
|
|||||||
|
|
||||||
echo "[*] REMOVING PACKAGES..."
|
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
|
apt autoremove -y --purge
|
||||||
|
|
||||||
echo "[*] REMOVING COCKPIT FILES..."
|
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 /etc/cron.d/selfcert-renew
|
||||||
rm -f /var/log/selfcert-renew.log
|
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
|
rm -f /etc/fail2ban/filter.d/cockpit.conf
|
||||||
|
|
||||||
echo "[*] CLEANING UFW RULES..."
|
|
||||||
|
|
||||||
ufw --force reset || true
|
|
||||||
|
|
||||||
echo "[*] RESETTING SYSTEMD..."
|
echo "[*] RESETTING SYSTEMD..."
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
Reference in New Issue
Block a user