Commits

Zhang Huangbin  committed cb1259d

Redirect web home page to webmail by default.

  • Participants
  • Parent commits 44c6349

Comments (0)

Files changed (2)

File iRedMail/ChangeLog

 iRedMail-0.8.0-beta2:
+    * It now works perfectly on Gentoo.
     * Fixed:
         + Dovecot cannot store realtime quota usage in PostgreSQL.
         + User authentication in Roundcube is case sensitive (login_lc).

File iRedMail/functions/roundcubemail.sh

     perl -pi -e 's#(</VirtualHost>)#Alias /webmail "$ENV{RCM_HTTPD_ROOT_SYMBOL_LINK}/"\n${1}#' ${HTTPD_SSL_CONF}
     perl -pi -e 's#(</VirtualHost>)#Alias /roundcube "$ENV{RCM_HTTPD_ROOT_SYMBOL_LINK}/"\n${1}#' ${HTTPD_SSL_CONF}
 
+    # Redirect home page to webmail by default
+    backup_file ${HTTPD_DOCUMENTROOT}/index.html
+    cat > ${HTTPD_DOCUMENTROOT}/index.html <<EOF
+<html>
+    <head>
+        <meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">
+    </head>
+</html>
+EOF
+
     echo 'export status_rcm_config_httpd="DONE"' >> ${STATUS_FILE}
 }