Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16734: SOLR_DATA_HOME is only honored in verbode mode (#1536)

Kevin Risden483f4f29a054
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index c45ad3a6f6e..07d8e7bf1e9 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -94,6 +94,8 @@ Bug Fixes
* SOLR-16731: Use the right cluster property for displaying if TLS is enabled (Tomás Fernández Löbbe)
+* SOLR-16734: SOLR_DATA_HOME is only honored in verbode mode (Kevin Risden)
+
Dependency Upgrades
---------------------
* PR#1494: Upgrade forbiddenapis to 3.5 (Uwe Schindler)
diff --git a/solr/bin/solr b/solr/bin/solr
index d49ed9fdab2..45a844995ea 100644
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -2191,6 +2191,10 @@ function start_solr() {
SOLR_OPTS+=("-DwaitForZk=$SOLR_WAIT_FOR_ZK")
fi
+ if [ -n "${SOLR_DATA_HOME:-}" ]; then
+ SOLR_OPTS+=("-Dsolr.data.home=$SOLR_DATA_HOME")
+ fi
+
# If SSL-related system props are set, add them to SOLR_OPTS
if [ "$SOLR_SSL_ENABLED" == "true" ]; then
# If using SSL and solr.jetty.https.port not set explicitly, use the jetty.port
@@ -2252,7 +2256,6 @@ function start_solr() {
fi
if [ -n "${SOLR_DATA_HOME:-}" ]; then
- SOLR_OPTS+=("-Dsolr.data.home=$SOLR_DATA_HOME")
echo -e " SOLR_DATA_HOME = $SOLR_DATA_HOME"
fi
echo