Apache Solr open-source search software
SOLR-8401: Windows start script fails when executed from a different drive
Erick Erickson72a5850a2073
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex d4b79efc8a5..b38a464f77a 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -234,6 +234,9 @@ Bug Fixes* SOLR-8367: Fix the LeaderInitiatedRecovery 'all replicas participate' fail-safe.(Mark Miller, Mike Drob)+* SOLR-8401: Windows start script fails when executed from a different drive.+ (Nicolas Gavalda via Erick Erickson)+Other Changes----------------------diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmdindex 6e0155126e4..bc4e76ac82c 100644--- a/solr/bin/solr.cmd+++ b/solr/bin/solr.cmd@@ -902,7 +902,7 @@ IF NOT "%SOLR_SSL_OPTS%"=="" (IF NOT DEFINED LOG4J_CONFIG set "LOG4J_CONFIG=file:%SOLR_SERVER_DIR%\resources\log4j.properties"-cd "%SOLR_SERVER_DIR%"+cd /d "%SOLR_SERVER_DIR%"IF NOT EXIST "!SOLR_LOGS_DIR!" (mkdir "!SOLR_LOGS_DIR!"