1. Zhang Huangbin
  2. iredmail

Commits

Zhang Huangbin  committed 1ee2bd3

Code cleanup.

  • Participants
  • Parent commits f81e063
  • Branches default

Comments (0)

Files changed (1)

File iRedMail/functions/packages.sh

View file
  • Ignore whitespace
     elif [ X"${DISTRO}" == X'GENTOO' ]; then
         ALL_PKGS="${ALL_PKGS} python-ldap"
     elif [ X"${DISTRO}" == X'OPENBSD' ]; then
-        ALL_PKGS="${ALL_PKGS} py-ldap py-psycopg2"
+        [ X"${BACKEND}" == X'OPENLDAP' ] && ALL_PKGS="${ALL_PKGS} py-ldap py-mysql"
+        [ X"${BACKEND}" == X'MYSQL' ] && ALL_PKGS="${ALL_PKGS} py-mysql"
+        [ X"${BACKEND}" == X'PGSQL' ] && ALL_PKGS="${ALL_PKGS} py-psycopg2"
         PKG_SCRIPTS="${PKG_SCRIPTS} iredapd"
     fi
 
         # Don't use python-3
         gentoo_mask_package '<=dev-lang/python-3.0'
     elif [ X"${DISTRO}" == X'OPENBSD' ]; then
-        ALL_PKGS="${ALL_PKGS} py-jinja2 py-webpy py-mysql py-flup"
+        ALL_PKGS="${ALL_PKGS} py-jinja2 py-webpy py-flup"
     fi
 
     #############