mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -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
|
||||
fi
|
||||
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
|
||||
check_result $? "fail2ban start failed"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue