Skip to content

Commit 309abec

Browse files
authored
Fix for broken CentOS 7 installation because of latest fail2ban version
Fix for issue outroll/vesta#1086
1 parent 9c84c5f commit 309abec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/vst-install-rhel.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,9 @@ if [ "$fail2ban" = 'yes' ]; then
11991199
sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
12001200
fi
12011201
chkconfig fail2ban on
1202+
/bin/mkdir -p /var/run/fail2ban
1203+
sed -i "s/\[Service\]/\[Service\]\nExecStartPre = \/bin\/mkdir -p \/var\/run\/fail2ban/g" /usr/lib/systemd/system/fail2ban.service
1204+
systemctl daemon-reload
12021205
service fail2ban start
12031206
check_result $? "fail2ban start failed"
12041207
fi

0 commit comments

Comments
 (0)