Commits

Zhang Huangbin  committed b8c0c78

Temporary disable Fail2ban on FreeBSD.
Disable phpLDAPadmin on Ubuntu 13.10 (saucy) due to package install error.

  • Participants
  • Parent commits d6e44ad

Comments (0)

Files changed (2)

File iRedMail/conf/global

 
 # Enabled components.
 export DIALOG_SELECTABLE_AWSTATS='YES'
+export DIALOG_SELECTABLE_FAIL2BAN='YES'
+export DIALOG_SELECTABLE_PHPLDAPADMIN='YES'
 
 # For better distributed deployment
 #
         # Disable Awstats on Ubuntu 13.10 due to package missing: libapache2-mod-auth-mysql/pgsql
         if [ X"${DISTRO_CODENAME}" == X'saucy' ]; then
             export DIALOG_SELECTABLE_AWSTATS='NO'
+            export DIALOG_SELECTABLE_PHPLDAPADMIN='YES'
         fi
 
         # Unsupported releases.
     fi
 
     export SHELL_BASH='/usr/local/bin/bash'
+
+    export DIALOG_SELECTABLE_FAIL2BAN='NO'
 elif [ X"${KERNEL_NAME}" == X'OPENBSD' ]; then
     export DISTRO='OPENBSD'
     export DISTRO_VERSION="$(uname -r)"

File iRedMail/dialog/optional_components.sh

 export LIST_OF_OPTIONAL_COMPONENTS=''
 
 if [ X"${BACKEND}" == X'OPENLDAP' ]; then
-    LIST_OF_OPTIONAL_COMPONENTS="${LIST_OF_OPTIONAL_COMPONENTS} phpLDAPadmin Web-based_LDAP_management_tool on"
+    if [ X"${DIALOG_SELECTABLE_PHPLDAPADMIN}" == X'YES' ]; then
+        LIST_OF_OPTIONAL_COMPONENTS="${LIST_OF_OPTIONAL_COMPONENTS} phpLDAPadmin Web-based_LDAP_management_tool on"
+    fi
     LIST_OF_OPTIONAL_COMPONENTS="${LIST_OF_OPTIONAL_COMPONENTS} phpMyAdmin Web-based_MySQL_management_tool on"
 elif [ X"${BACKEND}" == X'MYSQL' ]; then
     LIST_OF_OPTIONAL_COMPONENTS="${LIST_OF_OPTIONAL_COMPONENTS} phpMyAdmin Web-based_MySQL_management_tool on"
 fi
 
 # Fail2ban
-LIST_OF_OPTIONAL_COMPONENTS="${LIST_OF_OPTIONAL_COMPONENTS} Fail2ban Ban_IP_with_too_many_password_failures on"
+if [ X"${DIALOG_SELECTABLE_FAIL2BAN}" == X'YES' ]; then
+    LIST_OF_OPTIONAL_COMPONENTS="${LIST_OF_OPTIONAL_COMPONENTS} Fail2ban Ban_IP_with_too_many_password_failures on"
+fi
 
 export tmp_config_optional_components="${ROOTDIR}/.optional_components"