From 309abec58f2a6601bb10b219e19f874c849691c7 Mon Sep 17 00:00:00 2001 From: dpeca Date: Sat, 18 Feb 2017 16:54:20 +0100 Subject: [PATCH] Fix for broken CentOS 7 installation because of latest fail2ban version Fix for issue https://github.com/serghey-rodin/vesta/issues/1086 --- install/vst-install-rhel.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index 7b8e4d851..298a85fb6 100755 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -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