Christian Goll
76b4ba8715
- updated to version 3.7.4 - added patches for a global user config under /etc/ganglia/conf.d/ and added download_js.sh which can download the external java script libararies. * new file: 0001-added-of-download_js.patch which adds download_js.sh * new file: 0002-looking-for-systemwide-user-config.patch which makes ganglia-web to serach for config in /etc/ganglia/conf.d/ OBS-URL: https://build.opensuse.org/request/show/755206 OBS-URL: https://build.opensuse.org/package/show/network:cluster/ganglia-web?expand=0&rev=16
29 lines
824 B
Diff
29 lines
824 B
Diff
From b88b085b67e48ec5baf1bc66a973beb31b737360 Mon Sep 17 00:00:00 2001
|
|
From: Christian Goll <cgoll@suse.de>
|
|
Date: Mon, 9 Dec 2019 11:52:48 +0100
|
|
Subject: [PATCH 2/2] looking for systemwide user config
|
|
|
|
---
|
|
eval_conf.php | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/eval_conf.php b/eval_conf.php
|
|
index b39fb2e..5e3d884 100644
|
|
--- a/eval_conf.php
|
|
+++ b/eval_conf.php
|
|
@@ -12,6 +12,11 @@ require_once $base_dir . "/conf_default.php";
|
|
require_once 'lib/GangliaAcl.php';
|
|
require_once 'lib/GangliaAuth.php';
|
|
|
|
+# Include system-wide overrides if they exist.
|
|
+if( file_exists( "/etc/ganglia/conf.d/conf.php" ) ) {
|
|
+ include_once "/etc/ganglia/conf.d/conf.php";
|
|
+}
|
|
+
|
|
# Include user-defined overrides if they exist.
|
|
if( file_exists( $base_dir . "/conf.php" ) ) {
|
|
include_once $base_dir . "/conf.php";
|
|
--
|
|
2.16.4
|
|
|