Merge pull request #404 from arcaine2/patch-1

Fail2ban fix for restarting container
This commit is contained in:
Thomas VIAL 2016-12-18 16:55:02 +01:00 committed by GitHub
commit 93837ec2f9

View file

@ -840,6 +840,10 @@ function _start_daemons_saslauthd() {
function _start_daemons_fail2ban() { function _start_daemons_fail2ban() {
notify 'task' 'Starting fail2ban' notify 'task' 'Starting fail2ban'
touch /var/log/auth.log touch /var/log/auth.log
# Delete fail2ban.sock that probably was left here after container restart
if [ -e /var/run/fail2ban/fail2ban.sock ]; then
rm /var/run/fail2ban/fail2ban.sock
fi
/etc/init.d/fail2ban start /etc/init.d/fail2ban start
} }