Browse Source

Merge pull request #4 from fusionpbx/richbreton-issue-1029

Make sure that freeswitch-dos gets created
Rich Breton 10 years ago
parent
commit
7cd5b37c7a
1 changed files with 8 additions and 1 deletions
  1. 8 1
      install/ubuntu/install_fusionpbx.sh

+ 8 - 1
install/ubuntu/install_fusionpbx.sh

@@ -1820,7 +1820,14 @@ failregex = \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(REGISTER\) on sofia p
 ignoreregex =
 DELIM
 
-/bin/cat > /etc/fail2ban/filter.d/freeswitch-dos.conf  <<"DELIM"
+	fi
+	
+		if [ -a /etc/fail2ban/filter.d/freeswitch-dos.conf ]; then
+		/bin/echo "fail2ban filter for freeswitch-dos already done!"
+
+	else
+	
+		/bin/cat > /etc/fail2ban/filter.d/freeswitch-dos.conf  <<"DELIM"
 # Fail2Ban configuration file
 #
 # Author: soapee01