]> git.donarmstrong.com Git - roundcube.git/blobdiff - debian/patches/correct_install_path.patch
Handle incorrect upgrade from 0.3.1-6 when "changed" column already
[roundcube.git] / debian / patches / correct_install_path.patch
index 1b134027dd4bd89bd2ccfa1636c2b22a2eda7314..6afa0984acb4ff25003c34682d8d1895e336be37 100644 (file)
@@ -1,11 +1,15 @@
---- roundcube-0.1~beta2.2/index.php    2006-12-22 23:26:24.000000000 +0100
-+++ roundcube-0.1~beta2.2/index.php    2007-03-13 15:36:21.000000000 +0100
-@@ -46,7 +46,7 @@
- $CHARSET = 'UTF-8';
- $OUTPUT_TYPE = 'html';
- $JS_OBJECT_NAME = 'rcmail';
--$INSTALL_PATH = dirname(__FILE__);
-+$INSTALL_PATH = '/var/lib/roundcube';
- $MAIN_TASKS = array('mail','settings','addressbook','logout');
+Install path is /var/lib/roundcube for Debian. Don't try to guess it.
+
+Index: b/program/include/iniset.php
+===================================================================
+--- a/program/include/iniset.php       2010-07-17 17:33:04.000000000 +0200
++++ b/program/include/iniset.php       2010-07-17 17:33:23.000000000 +0200
+@@ -42,7 +42,7 @@
+ define('RCMAIL_START', microtime(true));
  
- if (empty($INSTALL_PATH))
+ if (!defined('INSTALL_PATH')) {
+-    define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
++    define('INSTALL_PATH', '/var/lib/roundcube/');
+ }
+
+ if (!defined('RCMAIL_CONFIG_DIR')) {