Update 'CoreModules/generic/conf.sh'
This commit is contained in:
@@ -17,16 +17,17 @@ newaliases
|
|||||||
# Fail2Ban #
|
# Fail2Ban #
|
||||||
##------------##
|
##------------##
|
||||||
|
|
||||||
sed -i 's/root@localhost/'$email'/g' /etc/fail2ban/jail.conf
|
##Disabled
|
||||||
wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/sshd.local -O /etc/fail2ban/jail.d/sshd.local
|
#sed -i 's/root@localhost/'$email'/g' /etc/fail2ban/jail.conf
|
||||||
if [[ $CMS == "Nextcloud" ]]; then
|
#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/sshd.local -O /etc/fail2ban/jail.d/sshd.local
|
||||||
wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.conf -O /etc/fail2ban/filter.d/nextcloud.conf
|
#if [[ $CMS == "Nextcloud" ]]; then
|
||||||
wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.local -O /etc/fail2ban/jail.d/nextcloud.local
|
#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.conf -O /etc/fail2ban/filter.d/nextcloud.conf
|
||||||
fi
|
#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/nextcloud.local -O /etc/fail2ban/jail.d/nextcloud.local
|
||||||
if [[ $CMS == "Wordpress" ]]; then
|
#fi
|
||||||
wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.conf -O /etc/fail2ban/filter.d/wordpress.conf
|
#if [[ $CMS == "Wordpress" ]]; then
|
||||||
wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.local -O /etc/fail2ban/jail.d/wordpress.local
|
#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.conf -O /etc/fail2ban/filter.d/wordpress.conf
|
||||||
fi
|
#wget -q -t7 "$repo"/raw/branch/"$branch"/config/fail2ban/wordpress.local -O /etc/fail2ban/jail.d/wordpress.local
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
##-------##
|
##-------##
|
||||||
|
|||||||
Reference in New Issue
Block a user