Make nftables restart fail2ban when reloaded

This commit is contained in:
flyingscorpio@clevo 2022-08-20 00:57:59 +02:00
parent 1acafce7c0
commit 1d2a293d4f

View file

@ -2,4 +2,4 @@
# Restart fail2ban if needed
[ "$(systemctl is-active fail2ban.service)" = inactive ] || fail2ban-client reload
[ "$(systemctl is-active fail2ban.service)" = 'active' ] && fail2ban-client reload --restart