You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by rv...@apache.org on 2014/06/06 05:23:08 UTC

[2/2] git commit: BIGTOP-1124. solrctl should be able to auto-detect JAVA_HOME

BIGTOP-1124. solrctl should be able to auto-detect JAVA_HOME


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/98ed86e5
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/98ed86e5
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/98ed86e5

Branch: refs/heads/master
Commit: 98ed86e505be78cc378cc99bd497e8c8ce8a6d96
Parents: ab12e7b
Author: Roman Shaposhnik <rv...@apache.org>
Authored: Sun Jun 1 07:34:08 2014 -0700
Committer: Roman Shaposhnik <rv...@apache.org>
Committed: Thu Jun 5 09:35:55 2014 -0700

----------------------------------------------------------------------
 bigtop-packages/src/common/solr/solrctl.sh | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/98ed86e5/bigtop-packages/src/common/solr/solrctl.sh
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/solr/solrctl.sh b/bigtop-packages/src/common/solr/solrctl.sh
index 5b9f434..d7caa89 100644
--- a/bigtop-packages/src/common/solr/solrctl.sh
+++ b/bigtop-packages/src/common/solr/solrctl.sh
@@ -156,6 +156,9 @@ SOLR_ADMIN_API_CMD='solr_webapi'
 
 SOLR_HOME=${SOLR_HOME:-/usr/lib/solr/}
 
+# Autodetect JAVA_HOME if not defined
+. /usr/lib/bigtop-utils/bigtop-detect-javahome
+
 # First eat up all the global options
 
 while test $# != 0 ; do