Commits

Zhang Huangbin committed 2e99848

PostgreSQL is available on Ubuntu 11.04/11.10.

  • Participants
  • Parent commits c39af05

Comments (0)

Files changed (1)

File iRedMail/dialog/config_via_dialog.sh

 # --------------------------------------------------
 # --------------------- Backend --------------------
 # --------------------------------------------------
-${DIALOG} \
+# PGSQL is available on Ubuntu 11.04, 11.10.
+if [ X"${DISTRO_CODENAME}" == X"oneiric" -o X"${DISTRO_CODENAME}" == X"natty" ]; then
+    ${DIALOG} \
     --title "Choose your preferred backend used to store mail accounts" \
     --radiolist "\
 We provide two backends and the homologous webmail programs:
     'PostgreSQL' 'Powerful, open source database system' 'off' \
     2>/tmp/backend
 
+else
+    ${DIALOG} \
+    --title "Choose your preferred backend used to store mail accounts" \
+    --radiolist "\
+We provide two backends and the homologous webmail programs:
++------------+---------------+---------------------------+
+| Backend    | Web Mail      | Web-based management tool |
++------------+---------------+---------------------------+
+| OpenLDAP   |               | iRedAdmin, phpLDAPadmin   |
++------------+ Roundcube     +---------------------------+
+| MySQL      |               | iRedAdmin, phpMyAdmin     |
++------------+---------------+---------------------------+
+
+TIP: Use SPACE key to select item.
+" 20 76 2 \
+    'OpenLDAP' 'An open source implementation of LDAP protocol' 'on' \
+    'MySQL' "The world's most popular open source database" 'off' \
+    'PostgreSQL' 'Powerful, open source database system' 'off' \
+    2>/tmp/backend
+
 BACKEND_ORIG="$(cat /tmp/backend)"
 if [ X"${BACKEND_ORIG}" == X'OpenLDAP' ]; then
     export BACKEND='OPENLDAP'