From 083d180e8eeba5d23120233d02400a001b2e4be3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 2 Apr 2017 22:16:11 -0600 Subject: [PATCH] Update fail2ban.sh --- freebsd/resources/fail2ban.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freebsd/resources/fail2ban.sh b/freebsd/resources/fail2ban.sh index ac31d2c..dad4f5d 100755 --- a/freebsd/resources/fail2ban.sh +++ b/freebsd/resources/fail2ban.sh @@ -30,9 +30,9 @@ cp fail2ban/nginx-dos.conf /usr/local/etc/fail2ban/filter.d/nginx-dos.conf cp fail2ban/jail.local /usr/local/etc/fail2ban/jail.local #update config if source is being used -#if [ .$switch_source = .true ]; then -# sed -i' ' -e 's#var/log/freeswitch#usr/local/freeswitch/log#g' /usr/local/etc/fail2ban/jail.local -#fi +if [ .$switch_source = .true ]; then + sed -i' ' -e 's#var/log/freeswitch#usr/local/freeswitch/log#g' /usr/local/etc/fail2ban/jail.local +fi #restart fail2ban service fail2ban restart