From 46a4d7ed34b4c3b64f341b00809d293a495e33a4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 11 Oct 2017 10:38:04 +0200 Subject: move config/config_path.php to inc/downstream.php use /etc/glpi/local_define.php to allow local path change --- glpi-localdef.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 glpi-localdef.patch (limited to 'glpi-localdef.patch') diff --git a/glpi-localdef.patch b/glpi-localdef.patch new file mode 100644 index 0000000..7b7be8d --- /dev/null +++ b/glpi-localdef.patch @@ -0,0 +1,16 @@ +diff -up ./inc/based_config.php.rpm ./inc/based_config.php +--- ./inc/based_config.php.rpm 2017-10-11 09:59:42.446010854 +0200 ++++ ./inc/based_config.php 2017-10-11 10:11:47.457934585 +0200 +@@ -46,9 +46,9 @@ if (!empty($tz)) { + date_default_timezone_set(@date_default_timezone_get()); + } + +-// If this file exists, it is load +-if (file_exists(GLPI_ROOT. '/config/local_define.php')) { +- require_once GLPI_ROOT. '/config/local_define.php'; ++// If this file exists, it is load from etc (RPM specific) ++if (file_exists('/etc/glpi/local_define.php')) { ++ require_once '/etc/glpi/local_define.php'; + } + + // If this file exists, it is load, allow to set configdir/dumpdir elsewhere -- cgit