Skip to content

Apache Lucene open-source search software

SOLR-10055: Linux installer now renames existing bin/solr.in.* as bin/solr.in.*.orig to avoid wrong resolving.

Jan Høydahl1e206d820ab0
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index dcea40c797c..ed30d53781d 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -180,6 +180,9 @@ Bug Fixes
* SOLR-9824: Some bulk update paths could be very slow due to CUSC polling. (David Smiley, Mark Miller)
+* SOLR-10055: Linux installer now renames existing bin/solr.in.* as bin/solr.in.*.orig to make the installed config in
+ /etc/defaults be the one found by default when launching solr manually. (janhoy)
+
Optimizations
----------------------
diff --git a/solr/bin/install_solr_service.sh b/solr/bin/install_solr_service.sh
index a23612fb813..b3318708c6c 100755
--- a/solr/bin/install_solr_service.sh
+++ b/solr/bin/install_solr_service.sh
@@ -322,6 +322,8 @@ elif [ -f "/etc/default/$SOLR_SERVICE.in.sh" ]; then
else
echo -e "\nInstalling /etc/default/$SOLR_SERVICE.in.sh ...\n"
cp "$SOLR_INSTALL_DIR/bin/solr.in.sh" "/etc/default/$SOLR_SERVICE.in.sh"
+ mv "$SOLR_INSTALL_DIR/bin/solr.in.sh" "$SOLR_INSTALL_DIR/bin/solr.in.sh.orig"
+ mv "$SOLR_INSTALL_DIR/bin/solr.in.cmd" "$SOLR_INSTALL_DIR/bin/solr.in.cmd.orig"
echo "SOLR_PID_DIR=\"$SOLR_VAR_DIR\"
SOLR_HOME=\"$SOLR_VAR_DIR/data\"
LOG4J_PROPS=\"$SOLR_VAR_DIR/log4j.properties\"