Skip to content

Commit

Permalink
update to use vars
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Sep 21, 2023
1 parent e8164a5 commit a69b844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/install_demo_configuration.bat
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ setlocal enabledelayedexpansion
if not "%initialAdminPassword%"=="" (
set "ADMIN_PASSWORD=%initialAdminPassword%"
) else (
if exist "%OPENSEARCH_CONF_DIR%\opensearch-security\initialAdminPassword.txt" (
for /f "delims=" %%a in ('type "%OPENSEARCH_CONF_DIR%\opensearch-security\initialAdminPassword.txt"') do (
if exist "%ADMIN_PASSWORD_FILE%" (
for /f "delims=" %%a in ('type "%ADMIN_PASSWORD_FILE%"') do (
set "ADMIN_PASSWORD=%%a"
goto :password_found
)
Expand Down

0 comments on commit a69b844

Please sign in to comment.