At startup, fail2ban is not started so nftables post-hook exits with 1
This commit is contained in:
parent
947723155e
commit
97aa822ee6
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue