At startup, fail2ban is not started so nftables post-hook exits with 1

This commit is contained in:
flyingscorpio@clevo 2023-01-16 13:34:38 +01:00
parent 947723155e
commit 97aa822ee6

View file

@ -1,5 +1,9 @@
#!/bin/bash
#!/bin/sh
set -e
# Restart fail2ban if needed
[ "$(systemctl is-active fail2ban.service)" = 'active' ] && fail2ban-client reload --restart
exit 0