Skip to content

Commit

Permalink
SOLR-17352: Backport removal of deprecated options for auth command (#…
Browse files Browse the repository at this point in the history
…2858) (#2889)

* Remove unsupported / deprecated options for auth command (#2858)

Co-authored-by: Eric Pugh <[email protected]>

(cherry picked from commit eb98647)

* Update outdated option --solr.home
  • Loading branch information
malliaridis authored Dec 1, 2024
1 parent 8ad8b59 commit 025c7a7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions solr/bin/solr.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ goto done
@echo -m memory Sets the min (-Xms) and max (-Xmx) heap size for the JVM, such as: -m 4g
@echo results in: -Xms4g -Xmx4g; by default, this script sets the heap size to 512m
@echo.
@echo --solr.home dir Sets the solr.solr.home system property; Solr will create core directories under
@echo --solr-home dir Sets the solr.solr.home system property; Solr will create core directories under
@echo this directory. This allows you to run multiple Solr instances on the same host
@echo while reusing the same server directory set using the --server-dir parameter. If set, the
@echo specified directory should contain a solr.xml file, unless solr.xml exists in Zookeeper.
Expand Down Expand Up @@ -1565,11 +1565,9 @@ for %%a in (%*) do (
if "!arg:~0,1!" equ "-" set "option=!arg!"
) else (
set "option!option!=%%a"
if "!option!" equ "-s" set "SOLR_HOME=%%a"
if "!option!" equ "--solr-home" set "SOLR_HOME=%%a"
if "!option!" equ "-d" set "SOLR_SERVER_DIR=%%a"
if "!option!" equ "--server-dir" set "SOLR_SERVER_DIR=%%a"
if not "!option!" equ "-s" if not "!option!" equ "--solr-home" if not "!option!" equ "-d" if not "!option!" equ "--server-dir" (
if "!option!" equ "--solr-home" set "SOLR_HOME=%%a"
if "!option!" equ "--server-dir" set "SOLR_SERVER_DIR=%%a"
if not "!option!" equ "--solr-home" if not "!option!" equ "--server-dir" (
set "AUTH_PARAMS=!AUTH_PARAMS! !option! %%a"
)
set "option="
Expand Down

0 comments on commit 025c7a7

Please sign in to comment.