hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shiv...@apache.org
Subject incubator-hawq git commit: HAWQ-1415. Set the default_value of JAVA_HOME for running RPS
Date Thu, 13 Apr 2017 21:59:20 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 72928dab2 -> c7a76523d


HAWQ-1415. Set the default_value of JAVA_HOME for running RPS


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

Branch: refs/heads/master
Commit: c7a76523d7912ab359544645c2d149d57e17d097
Parents: 72928da
Author: ljainpivotalio <ljain@pivotal.io>
Authored: Thu Apr 13 14:59:09 2017 -0700
Committer: shivzone <shivram.mani@gmail.com>
Committed: Thu Apr 13 14:59:09 2017 -0700

----------------------------------------------------------------------
 ranger-plugin/scripts/enable-ranger-plugin.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/c7a76523/ranger-plugin/scripts/enable-ranger-plugin.sh
----------------------------------------------------------------------
diff --git a/ranger-plugin/scripts/enable-ranger-plugin.sh b/ranger-plugin/scripts/enable-ranger-plugin.sh
index 2fa7162..d2318f8 100755
--- a/ranger-plugin/scripts/enable-ranger-plugin.sh
+++ b/ranger-plugin/scripts/enable-ranger-plugin.sh
@@ -214,6 +214,7 @@ function update_ranger_url() {
 function update_java_home() {
   local jdk64="/usr/jdk64"
   local java_sdk="/etc/alternatives/java_sdk"
+  local prop_file=$(dirname ${SCRIPT_DIR})/etc/rps.properties
 
   if [[ -d ${jdk64} ]]; then
     local DIR_NAME=$(ls ${jdk64} | sort -r | head -1)
@@ -225,7 +226,6 @@ function update_java_home() {
   fi
 
   if [[ ${JAVA_HOME_DIR} ]]; then
-    local prop_file=$(dirname ${SCRIPT_DIR})/etc/rps.properties
     sed -i -e "s|/usr/java/default|${JAVA_HOME_DIR}|g" ${prop_file}
     echo "Updated default value of JAVA_HOME to ${JAVA_HOME_DIR} in ${prop_file}"
   elif [[ ! ${JAVA_HOME} ]]; then


Mime
View raw message