Commits

Zhang Huangbin  committed 0e7a797

Add missing SQL command for Roundcube 1.0 for PostgreSQL backend.

  • Participants
  • Parent commits ac1c8b9

Comments (0)

Files changed (3)

File iRedMail/functions/apache_php.sh

         perl -pi -e 's#^;(date.timezone).*#${1} = GMT#' ${PHP_INI}
     fi
 
-    # Disable suhosin.session.encrypt on Debian 6. Required by Roundcube webmail.
     if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
+        # Disable suhosin.session.encrypt on Debian 6. Required by Roundcube webmail.
         [ -f ${PHP_INI_CONF_DIR}/suhosin.ini ] && \
             perl -pi -e 's#.*(suhosin.session.encrypt).*#${1} = off#' ${PHP_INI_CONF_DIR}/suhosin.ini
+
+        # Enable mcrypt
+        #cd ${PHP_INI_CONF_DIR} && \
+        #    ln -s ../../mods-available/mcrypt.ini 20-mcrpt.ini &>/dev/null
     fi
 
     cat >> ${TIP_FILE} <<EOF

File iRedMail/functions/awstats.sh

     perl -pi -e 's#^(\s*</VirtualHost>)#Alias /awstatsicon "$ENV{AWSTATS_ICON_DIR}/"\n${1}#' ${HTTPD_SSL_CONF}
     perl -pi -e 's#^(\s*</VirtualHost>)#ScriptAlias /awstats "$ENV{AWSTATS_CGI_DIR}/"\n${1}#' ${HTTPD_SSL_CONF}
 
-    if [ X"${DISTRO}" == X'UBUNTU' ]; then
+    if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
         a2enmod cgi &>/dev/null
-        a2enconf awstats &>/dev/null
+        a2enconf zawstats &>/dev/null
     fi
 
     cat >> ${TIP_FILE} <<EOF

File iRedMail/functions/roundcubemail.sh

 
 -- Grant privileges
 GRANT SELECT,INSERT,UPDATE,DELETE ON cache,cache_index,cache_messages,cache_thread,contactgroupmembers,contactgroups,contacts,dictionary,identities,searches,session,users TO ${RCM_DB_USER};
+GRANT SELECT,UPDATE,USAGE ON contacts_seq,contactgroups_seq,identities_seq,searches_seq,users_seq TO ${RCM_DB_USER};
 
 -- Grant privilege to update password through roundcube webmail
 \c ${VMAIL_DB};