ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [09/33] incubator-ranger git commit: RANGER-266: Creating index data folder during setup.sh
Date Tue, 27 Oct 2015 01:08:27 GMT
RANGER-266: Creating index data folder during setup.sh


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

Branch: refs/heads/tag-policy
Commit: 5872445a064df2e393459cc7657a7e8844d74f3d
Parents: c5ae2ed
Author: Don Bosco Durai <bosco@apache.org>
Authored: Sun Sep 27 11:24:51 2015 +0200
Committer: Don Bosco Durai <bosco@apache.org>
Committed: Thu Oct 1 11:00:55 2015 -0700

----------------------------------------------------------------------
 security-admin/contrib/solr_for_audit_setup/setup.sh | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/5872445a/security-admin/contrib/solr_for_audit_setup/setup.sh
----------------------------------------------------------------------
diff --git a/security-admin/contrib/solr_for_audit_setup/setup.sh b/security-admin/contrib/solr_for_audit_setup/setup.sh
index 11d5501..9032931 100755
--- a/security-admin/contrib/solr_for_audit_setup/setup.sh
+++ b/security-admin/contrib/solr_for_audit_setup/setup.sh
@@ -298,6 +298,10 @@ if [ $is_root -eq 1 ]; then
     chown -R $SOLR_USER:$SOLR_USER $SOLR_RANGER_HOME
     mkdir -p $SOLR_LOG_FOLDER
     chown -R $SOLR_USER:$SOLR_USER $SOLR_LOG_FOLDER
+    if [ "$SOLR_DEPLOYMENT" = "standalone" ]; then
+	mkdir -p $SOLR_RANGER_DATA_FOLDER
+	chown -R $SOLR_USER:$SOLR_USER $SOLR_RANGER_DATA_FOLDER
+    fi
 else
     chown -R $SOLR_USER:$SOLR_USER $SOLR_RANGER_HOME
 fi


Mime
View raw message