You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ve...@apache.org on 2017/06/01 01:30:03 UTC

ranger git commit: RANGER-1622 - Error installing Knox plugin using KNOX_HOME

Repository: ranger
Updated Branches:
  refs/heads/master 3f07cc368 -> dae46059b


RANGER-1622 - Error installing Knox plugin using KNOX_HOME

Signed-off-by: Velmurugan Periasamy <ve...@apache.org>


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

Branch: refs/heads/master
Commit: dae46059b940d258449779d3fbb0963df82936c0
Parents: 3f07cc3
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon May 29 17:35:02 2017 +0100
Committer: Velmurugan Periasamy <ve...@apache.org>
Committed: Wed May 31 21:29:47 2017 -0400

----------------------------------------------------------------------
 agents-common/scripts/enable-agent.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/dae46059/agents-common/scripts/enable-agent.sh
----------------------------------------------------------------------
diff --git a/agents-common/scripts/enable-agent.sh b/agents-common/scripts/enable-agent.sh
index 76ba8f0..a74289a 100755
--- a/agents-common/scripts/enable-agent.sh
+++ b/agents-common/scripts/enable-agent.sh
@@ -154,7 +154,14 @@ fi
 
 if [ "${HCOMPONENT_INSTALL_DIR_NAME}" = "" ]
 then
-	HCOMPONENT_INSTALL_DIR_NAME=${HCOMPONENT_NAME}
+    if [ "${HCOMPONENT_NAME}" = "knox" ];
+    then
+        HCOMPONENT_INSTALL_DIR_NAME=$(getInstallProperty 'KNOX_HOME')
+    fi
+    if [ "${HCOMPONENT_INSTALL_DIR_NAME}" = "" ]
+    then
+	    HCOMPONENT_INSTALL_DIR_NAME=${HCOMPONENT_NAME}
+    fi
 fi
 
 firstletter=${HCOMPONENT_INSTALL_DIR_NAME:0:1}