9 lines
150 B
Bash
9 lines
150 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Restart fail2ban if needed
|
|
|
|
[ "$(systemctl is-active fail2ban.service)" = 'active' ] && fail2ban-client reload --restart
|
|
|
|
exit 0
|