mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Check if fail2ban is running (#2626)
This commit is contained in:
parent
72650d4dc3
commit
8e0fd306b7
|
@ -5,6 +5,8 @@ source /usr/local/bin/helpers/index.sh
|
|||
|
||||
function __usage { echo "Usage: ./setup.sh fail2ban [<ban|unban> <IP>]" ; }
|
||||
|
||||
fail2ban-client ping &>/dev/null || _exit_with_error "Fail2ban not running"
|
||||
|
||||
unset JAILS
|
||||
declare -a JAILS
|
||||
IP_REGEXP='((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'
|
||||
|
|
Loading…
Reference in a new issue