mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
Fix for broken CentOS 7 installation because of latest fail2ban version
Fix for issue https://github.com/serghey-rodin/vesta/issues/1086
This commit is contained in:
parent
9c84c5f9fe
commit
309abec58f
1 changed files with 3 additions and 0 deletions
|
@ -1199,6 +1199,9 @@ if [ "$fail2ban" = 'yes' ]; then
|
||||||
sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
|
sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
|
||||||
fi
|
fi
|
||||||
chkconfig fail2ban on
|
chkconfig fail2ban on
|
||||||
|
/bin/mkdir -p /var/run/fail2ban
|
||||||
|
sed -i "s/\[Service\]/\[Service\]\nExecStartPre = \/bin\/mkdir -p \/var\/run\/fail2ban/g" /usr/lib/systemd/system/fail2ban.service
|
||||||
|
systemctl daemon-reload
|
||||||
service fail2ban start
|
service fail2ban start
|
||||||
check_result $? "fail2ban start failed"
|
check_result $? "fail2ban start failed"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue