Apache Solr open-source search software
SOLR-10307: Export variables so that solr.in.sh works correctly.
Mark Miller54fc1ee44d32
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 8d5c32136e8..7720ef2c098 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -373,7 +373,7 @@ New Features* SOLR-10849: MoreLikeThisComponent should expose setMaxDocFreqPct (maxDocfrequency percentage). (Dawid Weiss)-* SOLR-10307: Allow Passing SSL passwords through environment variables. (Mano Kovacs via Mark Miller)+* SOLR-10307: Allow Passing SSL passwords through environment variables. (Mano Kovacs, Michael Suzuki via Mark Miller)* SOLR-10721: Provide a way to know when Core Discovery is finished and when all async cores are done loading(Erick Erickson)diff --git a/solr/bin/solr b/solr/bin/solrindex 14f24eb4de4..cd27fdaf945 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -176,7 +176,9 @@ if [ "$SOLR_SSL_ENABLED" == "true" ]; thenif [ -n "$SOLR_SSL_KEY_STORE" ]; thenSOLR_SSL_OPTS+=" -Dsolr.jetty.keystore=$SOLR_SSL_KEY_STORE"fi-+ if [ -n "$SOLR_SSL_KEY_STORE_PASSWORD" ]; then+ export SOLR_SSL_KEY_STORE_PASSWORD=$SOLR_SSL_KEY_STORE_PASSWORD+ fiif [ -n "$SOLR_SSL_KEY_STORE_TYPE" ]; thenSOLR_SSL_OPTS+=" -Dsolr.jetty.keystore.type=$SOLR_SSL_KEY_STORE_TYPE"fi@@ -184,6 +186,9 @@ if [ "$SOLR_SSL_ENABLED" == "true" ]; thenif [ -n "$SOLR_SSL_TRUST_STORE" ]; thenSOLR_SSL_OPTS+=" -Dsolr.jetty.truststore=$SOLR_SSL_TRUST_STORE"fi+ if [ -n "$SOLR_SSL_TRUST_STORE_PASSWORD" ]; then+ export SOLR_SSL_TRUST_STORE_PASSWORD=$SOLR_SSL_TRUST_STORE_PASSWORD+ fiif [ -n "$SOLR_SSL_TRUST_STORE_TYPE" ]; thenSOLR_SSL_OPTS+=" -Dsolr.jetty.truststore.type=$SOLR_SSL_TRUST_STORE_TYPE"fi@@ -198,6 +203,9 @@ if [ "$SOLR_SSL_ENABLED" == "true" ]; thenif [ -n "$SOLR_SSL_CLIENT_KEY_STORE" ]; thenSOLR_SSL_OPTS+=" -Djavax.net.ssl.keyStore=$SOLR_SSL_CLIENT_KEY_STORE"+ if [ -n "$SOLR_SSL_CLIENT_KEY_STORE_PASSWORD" ]; then+ export SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=$SOLR_SSL_CLIENT_KEY_STORE_PASSWORD+ fiif [ -n "$SOLR_SSL_CLIENT_KEY_STORE_TYPE" ]; thenSOLR_SSL_OPTS+=" -Djavax.net.ssl.keyStoreType=$SOLR_SSL_CLIENT_KEY_STORE_TYPE"fi@@ -213,6 +221,9 @@ if [ "$SOLR_SSL_ENABLED" == "true" ]; thenif [ -n "$SOLR_SSL_CLIENT_TRUST_STORE" ]; thenSOLR_SSL_OPTS+=" -Djavax.net.ssl.trustStore=$SOLR_SSL_CLIENT_TRUST_STORE"+ if [ -n "$SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD" ]; then+ export SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=$SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD+ fiif [ -n "$SOLR_SSL_CLIENT_TRUST_STORE_TYPE" ]; thenSOLR_SSL_OPTS+=" -Djavax.net.ssl.trustStoreType=$SOLR_SSL_CLIENT_TRUST_STORE_TYPE"fi