From c1f8d4b1715b5d911b79d682522a3f9951e17e88 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 29 Apr 2020 13:08:43 +0200 Subject: [PATCH] Update 'CoreModules/generic/conf.sh' --- CoreModules/generic/conf.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/CoreModules/generic/conf.sh b/CoreModules/generic/conf.sh index 8cb9c24..25d3634 100644 --- a/CoreModules/generic/conf.sh +++ b/CoreModules/generic/conf.sh @@ -17,16 +17,17 @@ newaliases # Fail2Ban # ##------------## -sed -i 's/root@localhost/'$email'/g' /etc/fail2ban/jail.conf -wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/sshd.local -O /etc/fail2ban/jail.d/sshd.local -if [[ $CMS == "Nextcloud" ]]; then -wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.conf -O /etc/fail2ban/filter.d/nextcloud.conf -wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.local -O /etc/fail2ban/jail.d/nextcloud.local -fi -if [[ $CMS == "Wordpress" ]]; then -wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.conf -O /etc/fail2ban/filter.d/wordpress.conf -wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.local -O /etc/fail2ban/jail.d/wordpress.local -fi +##Disabled +#sed -i 's/root@localhost/'$email'/g' /etc/fail2ban/jail.conf +#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/sshd.local -O /etc/fail2ban/jail.d/sshd.local +#if [[ $CMS == "Nextcloud" ]]; then +#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.conf -O /etc/fail2ban/filter.d/nextcloud.conf +#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.local -O /etc/fail2ban/jail.d/nextcloud.local +#fi +#if [[ $CMS == "Wordpress" ]]; then +#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.conf -O /etc/fail2ban/filter.d/wordpress.conf +#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.local -O /etc/fail2ban/jail.d/wordpress.local +#fi ##-------##