浏览代码

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

Make sure that freeswitch-dos gets created
Rich Breton 10 年之前
父节点
当前提交
7cd5b37c7a
共有 1 个文件被更改,包括 8 次插入1 次删除
  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