self-hosting/roles/setup-nftables/files/post-hooks.d/fail2ban

6 lines
126 B
Text
Raw Normal View History

2022-03-13 12:46:07 +01:00
#!/bin/bash
# Restart fail2ban if needed
[ "$(systemctl is-active fail2ban.service)" = inactive ] || fail2ban-client reload