Update Health Check to show Fail2ban as not available on openSUSE
This commit is contained in:
@@ -339,13 +339,15 @@ perform_health_check() {
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
echo "=== Security Status ==="
|
echo "=== Security Status ==="
|
||||||
# Check Fail2ban if SSH was configured (which includes Fail2ban)
|
# Check Fail2ban if SSH was configured (which includes Fail2ban) and not openSUSE
|
||||||
if [[ "${CONFIGURE_SSH:-true}" == "true" ]]; then
|
if [[ "${CONFIGURE_SSH:-true}" == "true" && "$DISTRO" != "opensuse" ]]; then
|
||||||
if systemctl is-active --quiet fail2ban; then
|
if systemctl is-active --quiet fail2ban; then
|
||||||
echo "✅ Fail2ban: Active"
|
echo "✅ Fail2ban: Active"
|
||||||
else
|
else
|
||||||
echo "❌ Fail2ban: Inactive"
|
echo "❌ Fail2ban: Inactive"
|
||||||
fi
|
fi
|
||||||
|
elif [[ "$DISTRO" == "opensuse" ]]; then
|
||||||
|
echo "ℹ️ Fail2ban: Not available on openSUSE (compatibility issues)"
|
||||||
else
|
else
|
||||||
echo "ℹ️ Fail2ban: Not configured"
|
echo "ℹ️ Fail2ban: Not configured"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user