Skip to content

Commit

Permalink
Remove unsupported / deprecated options for auth command (apache#2858)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Pugh <[email protected]>

(cherry picked from commit eb98647)
  • Loading branch information
malliaridis committed Nov 27, 2024
1 parent f22a40e commit 28c8cce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions solr/bin/solr.cmd
Original file line number Diff line number Diff line change
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 28c8cce

Please sign in to comment.