Commits

Zhang Huangbin committed d9cbbb6

Correctly configure Cluebringer DSN setting on RHEL/CentOS 6.

  • Participants
  • Parent commits 85d8c62

Comments (0)

Files changed (1)

iRedMail/functions/cluebringer.sh

         perl -pi -e 's/^(DB_Port=).*/${1}$ENV{PGSQL_SERVER_PORT}/' ${CLUEBRINGER_CONF}
 
         # FreeBSD
-        if [ X"${DISTRO}" == X'FREEBSD' ]; then
+        if [ X"${DISTRO}" == X'RHEL' -o X"${DISTRO}" == X'FREEBSD' ]; then
             perl -pi -e 's/^(DSN=DBI:).*/${1}Pg:host=$ENV{PGSQL_SERVER};database=$ENV{CLUEBRINGER_DB_NAME};user=$ENV{CLUEBRINGER_DB_USER};password=$ENV{CLUEBRINGER_DB_PASSWD}/' ${CLUEBRINGER_CONF}
         fi
     fi