aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Shaposhnik <rvs@apache.org>2014-06-01 07:34:08 -0700
committerRoman Shaposhnik <rvs@apache.org>2014-06-05 09:35:55 -0700
commit98ed86e505be78cc378cc99bd497e8c8ce8a6d96 (patch)
treea3d14f158e36a5b75cc1bcd0382082d411dd286c
parentab12e7b800cddef088049cf5652673908356896e (diff)
BIGTOP-1124. solrctl should be able to auto-detect JAVA_HOME
-rw-r--r--bigtop-packages/src/common/solr/solrctl.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bigtop-packages/src/common/solr/solrctl.sh b/bigtop-packages/src/common/solr/solrctl.sh
index 5b9f4349..d7caa89e 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