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

5 lines
126 B
Bash

#!/bin/bash
# Restart fail2ban if needed
[ "$(systemctl is-active fail2ban.service)" = inactive ] || fail2ban-client reload