You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by sn...@apache.org on 2014/10/30 04:47:17 UTC
git commit: Changed path to binaries
Repository: incubator-argus
Updated Branches:
refs/heads/argus2ranger 6af44c4f4 -> 6c127542c
Changed path to binaries
Signed-off-by: sneethiraj <sn...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/6c127542
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/6c127542
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/6c127542
Branch: refs/heads/argus2ranger
Commit: 6c127542ca99b71e664968421b476b0fe994fae8
Parents: 6af44c4
Author: Don Bosco Durai <bo...@apache.org>
Authored: Wed Oct 29 20:18:02 2014 -0700
Committer: sneethiraj <sn...@apache.org>
Committed: Wed Oct 29 20:46:55 2014 -0700
----------------------------------------------------------------------
embededwebserver/scripts/ranger-admin | 4 ++--
embededwebserver/scripts/start-ranger-admin.sh | 5 +++--
embededwebserver/scripts/stop-ranger-admin.sh | 6 ++++--
security-admin/scripts/setup.sh | 4 ++--
unixauthservice/scripts/start.sh | 9 ++++-----
unixauthservice/scripts/stop.sh | 6 +++++-
6 files changed, 20 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/6c127542/embededwebserver/scripts/ranger-admin
----------------------------------------------------------------------
diff --git a/embededwebserver/scripts/ranger-admin b/embededwebserver/scripts/ranger-admin
index 3258692..c7e52aa 100755
--- a/embededwebserver/scripts/ranger-admin
+++ b/embededwebserver/scripts/ranger-admin
@@ -21,10 +21,10 @@ BIN_PATH=/usr/bin
case $1 in
start)
- /bin/su --login $LINUX_USER "${BIN_PATH}/start-ranger-admin"
+ /bin/su --login $LINUX_USER "${BIN_PATH}/ranger-admin-start"
;;
stop)
- /bin/su --login $LINUX_USER "${BIN_PATH}/stop-ranger-admin"
+ /bin/su --login $LINUX_USER "${BIN_PATH}/ranger-admin-stop"
;;
restart)
/bin/su --login $LINUX_USER "${BIN_PATH}/stop-ranger-admin.sh" && sleep 30
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/6c127542/embededwebserver/scripts/start-ranger-admin.sh
----------------------------------------------------------------------
diff --git a/embededwebserver/scripts/start-ranger-admin.sh b/embededwebserver/scripts/start-ranger-admin.sh
index fb6ad2e..d0c7946 100755
--- a/embededwebserver/scripts/start-ranger-admin.sh
+++ b/embededwebserver/scripts/start-ranger-admin.sh
@@ -15,8 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-cd `dirname $0`
-XAPOLICYMGR_DIR=`pwd`
+realScriptPath=`readlink -f $0`
+realScriptDir=`dirname $realScriptPath`
+XAPOLICYMGR_DIR=`(cd $realScriptDir/..; pwd)`
XAPOLICYMGR_EWS_DIR=${XAPOLICYMGR_DIR}/ews
RANGER_JAAS_LIB_DIR="${XAPOLICYMGR_EWS_DIR}/ranger_jaas"
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/6c127542/embededwebserver/scripts/stop-ranger-admin.sh
----------------------------------------------------------------------
diff --git a/embededwebserver/scripts/stop-ranger-admin.sh b/embededwebserver/scripts/stop-ranger-admin.sh
index 97179cf..cc35f8a 100755
--- a/embededwebserver/scripts/stop-ranger-admin.sh
+++ b/embededwebserver/scripts/stop-ranger-admin.sh
@@ -15,8 +15,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-cd `dirname $0`
-XAPOLICYMGR_DIR=`pwd`
+realScriptPath=`readlink -f $0`
+realScriptDir=`dirname $realScriptPath`
+XAPOLICYMGR_DIR=`(cd $realScriptDir/..; pwd)`
+
XAPOLICYMGR_EWS_DIR=${XAPOLICYMGR_DIR}/ews
RANGER_JAAS_LIB_DIR="${XAPOLICYMGR_EWS_DIR}/ranger_jaas"
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/6c127542/security-admin/scripts/setup.sh
----------------------------------------------------------------------
diff --git a/security-admin/scripts/setup.sh b/security-admin/scripts/setup.sh
index 6db9984..a81a5f8 100755
--- a/security-admin/scripts/setup.sh
+++ b/security-admin/scripts/setup.sh
@@ -1062,7 +1062,7 @@ do_authentication_setup(){
if [ $authentication_method = "LDAP" ] ; then
log "[I] Loading LDAP attributes and properties";
newPropertyValue=''
- ldap_file=$app_home/WEB-INF/classes/conf/ranger_jaas/xa_ldap.properties
+ ldap_file=$app_home/WEB-INF/classes/conf/xa_ldap.properties
if test -f $ldap_file; then
log "[I] $ldap_file file found"
propertyName=xa_ldap_url
@@ -1097,7 +1097,7 @@ do_authentication_setup(){
if [ $authentication_method = "ACTIVE_DIRECTORY" ] ; then
log "[I] Loading ACTIVE DIRECTORY attributes and properties";
newPropertyValue=''
- ldap_file=$app_home/WEB-INF/classes/conf/ranger_jaas/xa_ldap.properties
+ ldap_file=$app_home/WEB-INF/classes/conf/xa_ldap.properties
if test -f $ldap_file; then
log "[I] $ldap_file file found"
propertyName=xa_ldap_ad_url
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/6c127542/unixauthservice/scripts/start.sh
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/start.sh b/unixauthservice/scripts/start.sh
index d75a8c3..96b507f 100755
--- a/unixauthservice/scripts/start.sh
+++ b/unixauthservice/scripts/start.sh
@@ -15,12 +15,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-cdir=`dirname $0`
-if [ "${cdir}" = "." ]
-then
- cdir=`pwd`
-fi
+realScriptPath=`readlink -f $0`
+realScriptDir=`dirname $realScriptPath`
+cd $realScriptDir
+cdir=`pwd`
echo "Starting UnixAuthenticationService"
#export JAVA_HOME=
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/6c127542/unixauthservice/scripts/stop.sh
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/stop.sh b/unixauthservice/scripts/stop.sh
index ccdfd51..1933364 100755
--- a/unixauthservice/scripts/stop.sh
+++ b/unixauthservice/scripts/stop.sh
@@ -15,7 +15,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-cdir=`dirname $0`
+realScriptPath=`readlink -f $0`
+realScriptDir=`dirname $realScriptPath`
+cd $realScriptDir
+cdir=`pwd`
+
pidf=${cdir}/.mypid
port=`grep '^[ ]*authServicePort' ${cdir}/conf/unixauthservice.properties | awk -F= '{ print $2 }' | awk '{ print $1 }'`
pid=`netstat -antp | grep LISTEN | grep ${port} | awk '{ print $NF }' | awk -F/ '{ if ($2 == "java") { print $1 } }'`