Fix Fail2ban recidive jail logpath and re-enable on openSUSE

This commit is contained in:
Mărcziem ™
2025-10-06 11:44:06 +02:00
parent fc26c8e839
commit 3344620824
2 changed files with 6 additions and 7 deletions

View File

@@ -339,15 +339,13 @@ perform_health_check() {
echo
echo "=== Security Status ==="
# Check Fail2ban if SSH was configured (which includes Fail2ban) and not openSUSE
if [[ "${CONFIGURE_SSH:-true}" == "true" && "$DISTRO" != "opensuse" ]]; then
# Check Fail2ban if SSH was configured (which includes Fail2ban)
if [[ "${CONFIGURE_SSH:-true}" == "true" ]]; then
if systemctl is-active --quiet fail2ban; then
echo "✅ Fail2ban: Active"
else
echo "❌ Fail2ban: Inactive"
fi
elif [[ "$DISTRO" == "opensuse" ]]; then
echo " Fail2ban: Not available on openSUSE (compatibility issues)"
else
echo " Fail2ban: Not configured"
fi