Procházet zdrojové kódy

installer update (fail2ban)

Serghey Rodin před 10 roky
rodič
revize
5604a90870
94 změnil soubory, kde provedl 37 přidání a 36 odebrání
  1. 1 0
      .gitignore
  2. binární
      install/debian/7/dovecot.tar.gz
  3. binární
      install/debian/7/fail2ban.tar.gz
  4. binární
      install/debian/7/firewall.tar.gz
  5. binární
      install/debian/7/packages.tar.gz
  6. binární
      install/debian/7/templates.tar.gz
  7. binární
      install/debian/8/dovecot.tar.gz
  8. binární
      install/debian/8/fail2ban.tar.gz
  9. binární
      install/debian/8/firewall.tar.gz
  10. binární
      install/debian/8/packages.tar.gz
  11. binární
      install/debian/8/templates.tar.gz
  12. binární
      install/rhel/5/dovecot.tar.gz
  13. binární
      install/rhel/5/fail2ban.tar.gz
  14. binární
      install/rhel/5/firewall.tar.gz
  15. binární
      install/rhel/5/packages.tar.gz
  16. binární
      install/rhel/5/templates.tar.gz
  17. binární
      install/rhel/6/dovecot.tar.gz
  18. binární
      install/rhel/6/fail2ban.tar.gz
  19. binární
      install/rhel/6/firewall.tar.gz
  20. binární
      install/rhel/6/packages.tar.gz
  21. binární
      install/rhel/6/templates.tar.gz
  22. binární
      install/rhel/7/dovecot.tar.gz
  23. binární
      install/rhel/7/fail2ban.tar.gz
  24. binární
      install/rhel/7/firewall.tar.gz
  25. binární
      install/rhel/7/packages.tar.gz
  26. binární
      install/rhel/7/templates.tar.gz
  27. binární
      install/ubuntu/12.04/dovecot.tar.gz
  28. binární
      install/ubuntu/12.04/fail2ban.tar.gz
  29. binární
      install/ubuntu/12.04/firewall.tar.gz
  30. binární
      install/ubuntu/12.04/packages.tar.gz
  31. binární
      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ární
      install/ubuntu/12.10/dovecot.tar.gz
  43. binární
      install/ubuntu/12.10/fail2ban.tar.gz
  44. binární
      install/ubuntu/12.10/firewall.tar.gz
  45. binární
      install/ubuntu/12.10/packages.tar.gz
  46. binární
      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ární
      install/ubuntu/13.04/dovecot.tar.gz
  58. binární
      install/ubuntu/13.04/fail2ban.tar.gz
  59. binární
      install/ubuntu/13.04/firewall.tar.gz
  60. binární
      install/ubuntu/13.04/packages.tar.gz
  61. binární
      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ární
      install/ubuntu/13.10/dovecot.tar.gz
  73. binární
      install/ubuntu/13.10/fail2ban.tar.gz
  74. binární
      install/ubuntu/13.10/firewall.tar.gz
  75. binární
      install/ubuntu/13.10/packages.tar.gz
  76. binární
      install/ubuntu/13.10/templates.tar.gz
  77. binární
      install/ubuntu/14.04/dovecot.tar.gz
  78. binární
      install/ubuntu/14.04/fail2ban.tar.gz
  79. binární
      install/ubuntu/14.04/firewall.tar.gz
  80. binární
      install/ubuntu/14.04/packages.tar.gz
  81. binární
      install/ubuntu/14.04/templates.tar.gz
  82. binární
      install/ubuntu/14.10/dovecot.tar.gz
  83. binární
      install/ubuntu/14.10/fail2ban.tar.gz
  84. binární
      install/ubuntu/14.10/firewall.tar.gz
  85. binární
      install/ubuntu/14.10/packages.tar.gz
  86. binární
      install/ubuntu/14.10/templates.tar.gz
  87. binární
      install/ubuntu/15.04/dovecot.tar.gz
  88. binární
      install/ubuntu/15.04/fail2ban.tar.gz
  89. binární
      install/ubuntu/15.04/firewall.tar.gz
  90. binární
      install/ubuntu/15.04/packages.tar.gz
  91. binární
      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ární
install/debian/7/dovecot.tar.gz


binární
install/debian/7/fail2ban.tar.gz


binární
install/debian/7/firewall.tar.gz


binární
install/debian/7/packages.tar.gz


binární
install/debian/7/templates.tar.gz


binární
install/debian/8/dovecot.tar.gz


binární
install/debian/8/fail2ban.tar.gz


binární
install/debian/8/firewall.tar.gz


binární
install/debian/8/packages.tar.gz


binární
install/debian/8/templates.tar.gz


binární
install/rhel/5/dovecot.tar.gz


binární
install/rhel/5/fail2ban.tar.gz


binární
install/rhel/5/firewall.tar.gz


binární
install/rhel/5/packages.tar.gz


binární
install/rhel/5/templates.tar.gz


binární
install/rhel/6/dovecot.tar.gz


binární
install/rhel/6/fail2ban.tar.gz


binární
install/rhel/6/firewall.tar.gz


binární
install/rhel/6/packages.tar.gz


binární
install/rhel/6/templates.tar.gz


binární
install/rhel/7/dovecot.tar.gz


binární
install/rhel/7/fail2ban.tar.gz


binární
install/rhel/7/firewall.tar.gz


binární
install/rhel/7/packages.tar.gz


binární
install/rhel/7/templates.tar.gz


binární
install/ubuntu/12.04/dovecot.tar.gz


binární
install/ubuntu/12.04/fail2ban.tar.gz


binární
install/ubuntu/12.04/firewall.tar.gz


binární
install/ubuntu/12.04/packages.tar.gz


binární
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ární
install/ubuntu/12.10/dovecot.tar.gz


binární
install/ubuntu/12.10/fail2ban.tar.gz


binární
install/ubuntu/12.10/firewall.tar.gz


binární
install/ubuntu/12.10/packages.tar.gz


binární
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ární
install/ubuntu/13.04/dovecot.tar.gz


binární
install/ubuntu/13.04/fail2ban.tar.gz


binární
install/ubuntu/13.04/firewall.tar.gz


binární
install/ubuntu/13.04/packages.tar.gz


binární
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ární
install/ubuntu/13.10/dovecot.tar.gz


binární
install/ubuntu/13.10/fail2ban.tar.gz


binární
install/ubuntu/13.10/firewall.tar.gz


binární
install/ubuntu/13.10/packages.tar.gz


binární
install/ubuntu/13.10/templates.tar.gz


binární
install/ubuntu/14.04/dovecot.tar.gz


binární
install/ubuntu/14.04/fail2ban.tar.gz


binární
install/ubuntu/14.04/firewall.tar.gz


binární
install/ubuntu/14.04/packages.tar.gz


binární
install/ubuntu/14.04/templates.tar.gz


binární
install/ubuntu/14.10/dovecot.tar.gz


binární
install/ubuntu/14.10/fail2ban.tar.gz


binární
install/ubuntu/14.10/firewall.tar.gz


binární
install/ubuntu/14.10/packages.tar.gz


binární
install/ubuntu/14.10/templates.tar.gz


binární
install/ubuntu/15.04/dovecot.tar.gz


binární
install/ubuntu/15.04/fail2ban.tar.gz


binární
install/ubuntu/15.04/firewall.tar.gz


binární
install/ubuntu/15.04/packages.tar.gz


binární
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