Преглед изворни кода

installer update (fail2ban)

Serghey Rodin пре 10 година
родитељ
комит
5604a90870
94 измењених фајлова са 37 додато и 36 уклоњено
  1. 1 0
      .gitignore
  2. BIN
      install/debian/7/dovecot.tar.gz
  3. BIN
      install/debian/7/fail2ban.tar.gz
  4. BIN
      install/debian/7/firewall.tar.gz
  5. BIN
      install/debian/7/packages.tar.gz
  6. BIN
      install/debian/7/templates.tar.gz
  7. BIN
      install/debian/8/dovecot.tar.gz
  8. BIN
      install/debian/8/fail2ban.tar.gz
  9. BIN
      install/debian/8/firewall.tar.gz
  10. BIN
      install/debian/8/packages.tar.gz
  11. BIN
      install/debian/8/templates.tar.gz
  12. BIN
      install/rhel/5/dovecot.tar.gz
  13. BIN
      install/rhel/5/fail2ban.tar.gz
  14. BIN
      install/rhel/5/firewall.tar.gz
  15. BIN
      install/rhel/5/packages.tar.gz
  16. BIN
      install/rhel/5/templates.tar.gz
  17. BIN
      install/rhel/6/dovecot.tar.gz
  18. BIN
      install/rhel/6/fail2ban.tar.gz
  19. BIN
      install/rhel/6/firewall.tar.gz
  20. BIN
      install/rhel/6/packages.tar.gz
  21. BIN
      install/rhel/6/templates.tar.gz
  22. BIN
      install/rhel/7/dovecot.tar.gz
  23. BIN
      install/rhel/7/fail2ban.tar.gz
  24. BIN
      install/rhel/7/firewall.tar.gz
  25. BIN
      install/rhel/7/packages.tar.gz
  26. BIN
      install/rhel/7/templates.tar.gz
  27. BIN
      install/ubuntu/12.04/dovecot.tar.gz
  28. BIN
      install/ubuntu/12.04/fail2ban.tar.gz
  29. BIN
      install/ubuntu/12.04/firewall.tar.gz
  30. BIN
      install/ubuntu/12.04/packages.tar.gz
  31. BIN
      install/ubuntu/12.04/templates.tar.gz
  32. 1 1
      install/ubuntu/12.04/templates/web/apache2/basedir.stpl
  33. 1 1
      install/ubuntu/12.04/templates/web/apache2/basedir.tpl
  34. 1 1
      install/ubuntu/12.04/templates/web/apache2/default.stpl
  35. 1 1
      install/ubuntu/12.04/templates/web/apache2/default.tpl
  36. 1 1
      install/ubuntu/12.04/templates/web/apache2/hosting.stpl
  37. 1 1
      install/ubuntu/12.04/templates/web/apache2/hosting.tpl
  38. 1 1
      install/ubuntu/12.04/templates/web/apache2/phpcgi.stpl
  39. 1 1
      install/ubuntu/12.04/templates/web/apache2/phpcgi.tpl
  40. 1 1
      install/ubuntu/12.04/templates/web/apache2/phpfcgid.stpl
  41. 1 1
      install/ubuntu/12.04/templates/web/apache2/phpfcgid.tpl
  42. BIN
      install/ubuntu/12.10/dovecot.tar.gz
  43. BIN
      install/ubuntu/12.10/fail2ban.tar.gz
  44. BIN
      install/ubuntu/12.10/firewall.tar.gz
  45. BIN
      install/ubuntu/12.10/packages.tar.gz
  46. BIN
      install/ubuntu/12.10/templates.tar.gz
  47. 1 1
      install/ubuntu/12.10/templates/web/apache2/basedir.stpl
  48. 1 1
      install/ubuntu/12.10/templates/web/apache2/basedir.tpl
  49. 1 1
      install/ubuntu/12.10/templates/web/apache2/default.stpl
  50. 1 1
      install/ubuntu/12.10/templates/web/apache2/default.tpl
  51. 1 1
      install/ubuntu/12.10/templates/web/apache2/hosting.stpl
  52. 1 1
      install/ubuntu/12.10/templates/web/apache2/hosting.tpl
  53. 1 1
      install/ubuntu/12.10/templates/web/apache2/phpcgi.stpl
  54. 1 1
      install/ubuntu/12.10/templates/web/apache2/phpcgi.tpl
  55. 1 1
      install/ubuntu/12.10/templates/web/apache2/phpfcgid.stpl
  56. 1 1
      install/ubuntu/12.10/templates/web/apache2/phpfcgid.tpl
  57. BIN
      install/ubuntu/13.04/dovecot.tar.gz
  58. BIN
      install/ubuntu/13.04/fail2ban.tar.gz
  59. BIN
      install/ubuntu/13.04/firewall.tar.gz
  60. BIN
      install/ubuntu/13.04/packages.tar.gz
  61. BIN
      install/ubuntu/13.04/templates.tar.gz
  62. 1 1
      install/ubuntu/13.04/templates/web/apache2/basedir.stpl
  63. 1 1
      install/ubuntu/13.04/templates/web/apache2/basedir.tpl
  64. 1 1
      install/ubuntu/13.04/templates/web/apache2/default.stpl
  65. 1 1
      install/ubuntu/13.04/templates/web/apache2/default.tpl
  66. 1 1
      install/ubuntu/13.04/templates/web/apache2/hosting.stpl
  67. 1 1
      install/ubuntu/13.04/templates/web/apache2/hosting.tpl
  68. 1 1
      install/ubuntu/13.04/templates/web/apache2/phpcgi.stpl
  69. 1 1
      install/ubuntu/13.04/templates/web/apache2/phpcgi.tpl
  70. 1 1
      install/ubuntu/13.04/templates/web/apache2/phpfcgid.stpl
  71. 1 1
      install/ubuntu/13.04/templates/web/apache2/phpfcgid.tpl
  72. BIN
      install/ubuntu/13.10/dovecot.tar.gz
  73. BIN
      install/ubuntu/13.10/fail2ban.tar.gz
  74. BIN
      install/ubuntu/13.10/firewall.tar.gz
  75. BIN
      install/ubuntu/13.10/packages.tar.gz
  76. BIN
      install/ubuntu/13.10/templates.tar.gz
  77. BIN
      install/ubuntu/14.04/dovecot.tar.gz
  78. BIN
      install/ubuntu/14.04/fail2ban.tar.gz
  79. BIN
      install/ubuntu/14.04/firewall.tar.gz
  80. BIN
      install/ubuntu/14.04/packages.tar.gz
  81. BIN
      install/ubuntu/14.04/templates.tar.gz
  82. BIN
      install/ubuntu/14.10/dovecot.tar.gz
  83. BIN
      install/ubuntu/14.10/fail2ban.tar.gz
  84. BIN
      install/ubuntu/14.10/firewall.tar.gz
  85. BIN
      install/ubuntu/14.10/packages.tar.gz
  86. BIN
      install/ubuntu/14.10/templates.tar.gz
  87. BIN
      install/ubuntu/15.04/dovecot.tar.gz
  88. BIN
      install/ubuntu/15.04/fail2ban.tar.gz
  89. BIN
      install/ubuntu/15.04/firewall.tar.gz
  90. BIN
      install/ubuntu/15.04/packages.tar.gz
  91. BIN
      install/ubuntu/15.04/templates.tar.gz
  92. 2 2
      install/vst-install-debian.sh
  93. 2 2
      install/vst-install-rhel.sh
  94. 2 2
      install/vst-install-ubuntu.sh

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 *.tar
 *.zip
 *.gzip
+*.gz

BIN
install/debian/7/dovecot.tar.gz


BIN
install/debian/7/fail2ban.tar.gz


BIN
install/debian/7/firewall.tar.gz


BIN
install/debian/7/packages.tar.gz


BIN
install/debian/7/templates.tar.gz


BIN
install/debian/8/dovecot.tar.gz


BIN
install/debian/8/fail2ban.tar.gz


BIN
install/debian/8/firewall.tar.gz


BIN
install/debian/8/packages.tar.gz


BIN
install/debian/8/templates.tar.gz


BIN
install/rhel/5/dovecot.tar.gz


BIN
install/rhel/5/fail2ban.tar.gz


BIN
install/rhel/5/firewall.tar.gz


BIN
install/rhel/5/packages.tar.gz


BIN
install/rhel/5/templates.tar.gz


BIN
install/rhel/6/dovecot.tar.gz


BIN
install/rhel/6/fail2ban.tar.gz


BIN
install/rhel/6/firewall.tar.gz


BIN
install/rhel/6/packages.tar.gz


BIN
install/rhel/6/templates.tar.gz


BIN
install/rhel/7/dovecot.tar.gz


BIN
install/rhel/7/fail2ban.tar.gz


BIN
install/rhel/7/firewall.tar.gz


BIN
install/rhel/7/packages.tar.gz


BIN
install/rhel/7/templates.tar.gz


BIN
install/ubuntu/12.04/dovecot.tar.gz


BIN
install/ubuntu/12.04/fail2ban.tar.gz


BIN
install/ubuntu/12.04/firewall.tar.gz


BIN
install/ubuntu/12.04/packages.tar.gz


BIN
install/ubuntu/12.04/templates.tar.gz


+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/basedir.stpl

@@ -35,7 +35,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/basedir.tpl

@@ -29,7 +29,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/default.stpl

@@ -34,7 +34,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/default.tpl

@@ -28,7 +28,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/hosting.stpl

@@ -43,7 +43,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/hosting.tpl

@@ -37,7 +37,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/phpcgi.stpl

@@ -29,7 +29,7 @@
     SSLCertificateKeyFile %ssl_key%
     %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/phpcgi.tpl

@@ -22,7 +22,7 @@
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/phpfcgid.stpl

@@ -30,7 +30,7 @@
     SSLCertificateKeyFile %ssl_key%
     %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.04/templates/web/apache2/phpfcgid.tpl

@@ -22,7 +22,7 @@
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

BIN
install/ubuntu/12.10/dovecot.tar.gz


BIN
install/ubuntu/12.10/fail2ban.tar.gz


BIN
install/ubuntu/12.10/firewall.tar.gz


BIN
install/ubuntu/12.10/packages.tar.gz


BIN
install/ubuntu/12.10/templates.tar.gz


+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/basedir.stpl

@@ -35,7 +35,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/basedir.tpl

@@ -29,7 +29,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/default.stpl

@@ -34,7 +34,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/default.tpl

@@ -28,7 +28,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/hosting.stpl

@@ -43,7 +43,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/hosting.tpl

@@ -37,7 +37,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/phpcgi.stpl

@@ -29,7 +29,7 @@
     SSLCertificateKeyFile %ssl_key%
     %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/phpcgi.tpl

@@ -22,7 +22,7 @@
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/phpfcgid.stpl

@@ -30,7 +30,7 @@
     SSLCertificateKeyFile %ssl_key%
     %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/12.10/templates/web/apache2/phpfcgid.tpl

@@ -22,7 +22,7 @@
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

BIN
install/ubuntu/13.04/dovecot.tar.gz


BIN
install/ubuntu/13.04/fail2ban.tar.gz


BIN
install/ubuntu/13.04/firewall.tar.gz


BIN
install/ubuntu/13.04/packages.tar.gz


BIN
install/ubuntu/13.04/templates.tar.gz


+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/basedir.stpl

@@ -35,7 +35,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/basedir.tpl

@@ -29,7 +29,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/default.stpl

@@ -34,7 +34,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/default.tpl

@@ -28,7 +28,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/hosting.stpl

@@ -43,7 +43,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/hosting.tpl

@@ -37,7 +37,7 @@
         AssignUserID %user% %group%
     </IfModule>
 
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/phpcgi.stpl

@@ -29,7 +29,7 @@
     SSLCertificateKeyFile %ssl_key%
     %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/phpcgi.tpl

@@ -22,7 +22,7 @@
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/phpfcgid.stpl

@@ -30,7 +30,7 @@
     SSLCertificateKeyFile %ssl_key%
     %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
 
-    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
 </VirtualHost>
 

+ 1 - 1
install/ubuntu/13.04/templates/web/apache2/phpfcgid.tpl

@@ -22,7 +22,7 @@
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
+    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
 </VirtualHost>
 

BIN
install/ubuntu/13.10/dovecot.tar.gz


BIN
install/ubuntu/13.10/fail2ban.tar.gz


BIN
install/ubuntu/13.10/firewall.tar.gz


BIN
install/ubuntu/13.10/packages.tar.gz


BIN
install/ubuntu/13.10/templates.tar.gz


BIN
install/ubuntu/14.04/dovecot.tar.gz


BIN
install/ubuntu/14.04/fail2ban.tar.gz


BIN
install/ubuntu/14.04/firewall.tar.gz


BIN
install/ubuntu/14.04/packages.tar.gz


BIN
install/ubuntu/14.04/templates.tar.gz


BIN
install/ubuntu/14.10/dovecot.tar.gz


BIN
install/ubuntu/14.10/fail2ban.tar.gz


BIN
install/ubuntu/14.10/firewall.tar.gz


BIN
install/ubuntu/14.10/packages.tar.gz


BIN
install/ubuntu/14.10/templates.tar.gz


BIN
install/ubuntu/15.04/dovecot.tar.gz


BIN
install/ubuntu/15.04/fail2ban.tar.gz


BIN
install/ubuntu/15.04/firewall.tar.gz


BIN
install/ubuntu/15.04/packages.tar.gz


BIN
install/ubuntu/15.04/templates.tar.gz


+ 2 - 2
install/vst-install-debian.sh

@@ -1074,12 +1074,12 @@ if [ "$fail2ban" = 'yes' ]; then
     rm -f fail2ban.tar.gz
     if [ "$dovecot" = 'no' ]; then
         fline=$(cat /etc/fail2ban/jail.local |grep -n dovecot-iptables -A 2)
-        fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
+        fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
         sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
     fi
     if [ "$exim" = 'no' ]; then
         fline=$(cat /etc/fail2ban/jail.local |grep -n exim-iptables -A 2)
-        fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
+        fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
         sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
     fi
     update-rc.d fail2ban defaults

+ 2 - 2
install/vst-install-rhel.sh

@@ -1143,12 +1143,12 @@ if [ "$fail2ban" = 'yes' ]; then
     rm -f fail2ban.tar.gz
     if [ "$dovecot" = 'no' ]; then
         fline=$(cat /etc/fail2ban/jail.local |grep -n dovecot-iptables -A 2)
-        fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
+        fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
         sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
     fi
     if [ "$exim" = 'no' ]; then
         fline=$(cat /etc/fail2ban/jail.local |grep -n exim-iptables -A 2)
-        fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
+        fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
         sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
     fi
     chkconfig fail2ban on

+ 2 - 2
install/vst-install-ubuntu.sh

@@ -1063,12 +1063,12 @@ if [ "$fail2ban" = 'yes' ]; then
     rm -f fail2ban.tar.gz
     if [ "$dovecot" = 'no' ]; then
         fline=$(cat /etc/fail2ban/jail.local |grep -n dovecot-iptables -A 2)
-        fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
+        fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
         sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
     fi
     if [ "$exim" = 'no' ]; then
         fline=$(cat /etc/fail2ban/jail.local |grep -n exim-iptables -A 2)
-        fline=$(echo "$fline" |tail -n1 |cut -f 1 -d -)
+        fline=$(echo "$fline" |grep enabled |tail -n1 |cut -f 1 -d -)
         sed -i "${fline}s/true/false/" /etc/fail2ban/jail.local
     fi
     update-rc.d fail2ban defaults