ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-87: Modified to fix install script issue on permission for all argus config files
Date Mon, 29 Sep 2014 01:45:53 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master 4076fac82 -> 76acd8308


ARGUS-87: Modified to fix install script issue on permission for all argus config files


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

Branch: refs/heads/master
Commit: 76acd8308ffdab8368a69616cbc972a712c59ad8
Parents: 4076fac
Author: sneethiraj <sneethir@apache.org>
Authored: Sun Sep 28 18:45:45 2014 -0700
Committer: sneethiraj <sneethir@apache.org>
Committed: Sun Sep 28 18:45:45 2014 -0700

----------------------------------------------------------------------
 agents-common/scripts/enable-agent.sh | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/76acd830/agents-common/scripts/enable-agent.sh
----------------------------------------------------------------------
diff --git a/agents-common/scripts/enable-agent.sh b/agents-common/scripts/enable-agent.sh
index 91466f9..f92c692 100755
--- a/agents-common/scripts/enable-agent.sh
+++ b/agents-common/scripts/enable-agent.sh
@@ -46,7 +46,7 @@ fi
 
 HCOMPONENT_NAME=`echo ${COMPONENT_NAME} | sed -e 's:-agent::'`
 
-CFG_OWNER_INF="${HCOMPONENT_NAME}:hadoop"
+CFG_OWNER_INF="${HCOMPONENT_NAME}:${HCOMPONENT_NAME}"
 
 if [ "${HCOMPONENT_NAME}" = "hdfs" ]
 then
@@ -239,6 +239,8 @@ then
 	if [ "${action}" = "enable" ]
 	then
 		echo "<argus>\n<enabled>`date`</enabled>\n</argus>" > ${HCOMPONENT_CONF_DIR}/argus-security.xml
+		chown ${CFG_OWNER_INF} ${HCOMPONENT_CONF_DIR}/argus-security.xml
+		chmod a+r ${HCOMPONENT_CONF_DIR}/argus-security.xml
 		for cf in ${PROJ_INSTALL_DIR}/install/conf.templates/${action}/*.xml
 		do
 			cfb=`basename ${cf}`
@@ -249,13 +251,7 @@ then
 			fi
 			cp ${cf} ${HCOMPONENT_CONF_DIR}/
 			chown ${CFG_OWNER_INF} ${HCOMPONENT_CONF_DIR}/${cfb}
-			#
-			# To support Hive and HBase Client to be able to read the configuration ...
-			#
-			if [ "${HCOMPONENT_NAME}" = "hive" -o "${HCOMPONENT_NAME}" = "hbase" ]
-			then
-				chmod a+r ${HCOMPONENT_CONF_DIR}/${cfb}
-			fi
+			chmod a+r ${HCOMPONENT_CONF_DIR}/${cfb}
 		done
     else
 		if [ -f ${HCOMPONENT_CONF_DIR}/argus-security.xml ]


Mime
View raw message