metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmerri...@apache.org
Subject metron git commit: METRON-978 Management UI init script uses hard-coded METRON_HOME (merrimanr) closes apache/metron#604
Date Mon, 05 Jun 2017 21:49:16 GMT
Repository: metron
Updated Branches:
  refs/heads/master d5abcf429 -> 43e529fe0


METRON-978 Management UI init script uses hard-coded METRON_HOME (merrimanr) closes apache/metron#604


Project: http://git-wip-us.apache.org/repos/asf/metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/metron/commit/43e529fe
Tree: http://git-wip-us.apache.org/repos/asf/metron/tree/43e529fe
Diff: http://git-wip-us.apache.org/repos/asf/metron/diff/43e529fe

Branch: refs/heads/master
Commit: 43e529fe003b84c585555be9f25a4ff49d769132
Parents: d5abcf4
Author: merrimanr <merrimanr@gmail.com>
Authored: Mon Jun 5 16:48:49 2017 -0500
Committer: merrimanr <merrimanr@apache.org>
Committed: Mon Jun 5 16:48:49 2017 -0500

----------------------------------------------------------------------
 metron-interface/metron-config/scripts/metron-management-ui | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/metron/blob/43e529fe/metron-interface/metron-config/scripts/metron-management-ui
----------------------------------------------------------------------
diff --git a/metron-interface/metron-config/scripts/metron-management-ui b/metron-interface/metron-config/scripts/metron-management-ui
index 32b4e9e..34c0cb6 100644
--- a/metron-interface/metron-config/scripts/metron-management-ui
+++ b/metron-interface/metron-config/scripts/metron-management-ui
@@ -33,6 +33,11 @@ METRON_LOG_DIR="/var/log/metron"
 METRON_PID_DIR="/var/run/metron"
 METRON_USER="metron"
 METRON_GROUP="metron"
+METRON_SYSCONFIG="/etc/sysconfig/metron"
+if [ -f "$METRON_SYSCONFIG" ]; then
+    set -a
+    . "$METRON_SYSCONFIG"
+fi
 
 PIDFILE="$METRON_PID_DIR/$NAME.pid"
 LOCKFILE=/var/lock/subsys/$NAME


Mime
View raw message