ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v..@apache.org
Subject ranger git commit: RANGER-1622 - Error installing Knox plugin using KNOX_HOME
Date Thu, 01 Jun 2017 01:30:03 GMT
Repository: ranger
Updated Branches:
  refs/heads/master 3f07cc368 -> dae46059b


RANGER-1622 - Error installing Knox plugin using KNOX_HOME

Signed-off-by: Velmurugan Periasamy <vel@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 <coheigea@apache.org>
Authored: Mon May 29 17:35:02 2017 +0100
Committer: Velmurugan Periasamy <vel@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}


Mime
View raw message