From 1ccbe3e61acda4d1ef99888f7d794bbc3ee78e82 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 4 Sep 2020 14:52:29 +0200 Subject: [PATCH] Clean fail2ban jail folder before creating own jails --- CoreModules/generic/conf.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/CoreModules/generic/conf.sh b/CoreModules/generic/conf.sh index c80c6f1..1c36991 100644 --- a/CoreModules/generic/conf.sh +++ b/CoreModules/generic/conf.sh @@ -39,6 +39,7 @@ wget -q -t7 https://plugins.svn.wordpress.org/wp-fail2ban/trunk/filters.d/wordpr wget -q -t7 https://plugins.svn.wordpress.org/wp-fail2ban/trunk/filters.d/wordpress-soft.conf -O /etc/fail2ban/filter.d/wordpress-soft.local #General jails +rm /etc/fail2ban/jail.d/* wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/Jails/sshd.jail -O /etc/fail2ban/jail.d/sshd.local if [ -z $disbackendcms ]; then wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/Jails/phpmyadmin.jail -O /etc/fail2ban/jail.d/phpmyadmin.local