summaryrefslogtreecommitdiffstats
path: root/glpi-9.2-config_path.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-11 10:38:04 +0200
committerRemi Collet <remi@remirepo.net>2017-10-11 10:38:04 +0200
commit46a4d7ed34b4c3b64f341b00809d293a495e33a4 (patch)
tree72ca067eb93bce116fc3dc6ed7ad64affba6fee9 /glpi-9.2-config_path.php
parent1c2030a0ce92e3cc947b4e1f212631399e7ce435 (diff)
move config/config_path.php to inc/downstream.php
use /etc/glpi/local_define.php to allow local path change
Diffstat (limited to 'glpi-9.2-config_path.php')
-rw-r--r--glpi-9.2-config_path.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/glpi-9.2-config_path.php b/glpi-9.2-config_path.php
new file mode 100644
index 0000000..30d30a0
--- /dev/null
+++ b/glpi-9.2-config_path.php
@@ -0,0 +1,44 @@
+<?php
+/**
+ * Red Hat / Fedora RPM default configuration
+ *
+ * Modifying this file in-place is not recommended, because
+ * changes will be overwritten during package upgrades.
+ *
+ * If you want to customize the behaviour, the best way is to
+ * create and use the /etc/glpi/local_define.php file.
+ *
+**/
+
+
+// Config
+define('GLPI_CONFIG_DIR', '/etc/glpi');
+
+// Runtime Data
+defined('GLPI_VAR_DIR') or define('GLPI_VAR_DIR', '/var/lib/glpi/files');
+defined('GLPI_DOC_DIR') or define('GLPI_DOC_DIR', GLPI_VAR_DIR);
+defined('GLPI_CRON_DIR') or define('GLPI_CRON_DIR', GLPI_VAR_DIR . '/_cron');
+defined('GLPI_DUMP_DIR') or define('GLPI_DUMP_DIR', GLPI_VAR_DIR . '/_dumps');
+defined('GLPI_GRAPH_DIR') or define('GLPI_GRAPH_DIR', GLPI_VAR_DIR . '/_graphs');
+defined('GLPI_LOCK_DIR') or define('GLPI_LOCK_DIR', GLPI_VAR_DIR . '/_lock');
+defined('GLPI_PICTURE_DIR') or define('GLPI_PICTURE_DIR', GLPI_VAR_DIR . '/_pictures');
+defined('GLPI_PLUGIN_DOC_DIR') or define('GLPI_PLUGIN_DOC_DIR', GLPI_VAR_DIR . '/_plugins');
+defined('GLPI_RSS_DIR') or define('GLPI_RSS_DIR', GLPI_VAR_DIR . '/_rss');
+defined('GLPI_SESSION_DIR') or define('GLPI_SESSION_DIR', GLPI_VAR_DIR . '/_sessions');
+defined('GLPI_TMP_DIR') or define('GLPI_TMP_DIR', GLPI_VAR_DIR . '/_tmp');
+defined('GLPI_UPLOAD_DIR') or define('GLPI_UPLOAD_DIR', GLPI_VAR_DIR . '/_uploads');
+
+// Log
+defined('GLPI_LOG_DIR') or define('GLPI_LOG_DIR', '/var/log/glpi');
+
+// System libraries
+define('GLPI_HTMLAWED', '/usr/share/php/htmLawed/htmLawed.php');
+
+// Fonts
+define('GLPI_FONT_FREESANS', '/usr/share/fonts/gnu-free/FreeSans.ttf');
+
+// Use system cron
+define('GLPI_SYSTEM_CRON', true);
+
+// Packaging
+define('GLPI_INSTALL_MODE', 'RPM');