Skip to content

Commit

Permalink
update order
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 20, 2023
1 parent ca8b48b commit c9f245d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/install_demo_configuration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,13 @@ echo 'plugins.security.system_indices.indices: [".plugins-ml-config", ".plugins-
# Read the admin password from the file or use the initialAdminPassword if set
echo "Security config dir has"
ls $OPENSEARCH_CONF_DIR/opensearch-security
echo "Cat of password file is: $(cat $ADMIN_PASSWORD_FILE)"
echo "Cat of password file is: $(cat $OPENSEARCH_CONF_DIR/opensearch-security/initialAdminPassword.txt)"


if [ -n "$initialAdminPassword" ]; then
ADMIN_PASSWORD="$initialAdminPassword"
else
ADMIN_PASSWORD=$(head -n 1 "$ADMIN_PASSWORD_FILE")
ADMIN_PASSWORD=$(head -n 1 "$OPENSEARCH_CONF_DIR/opensearch-security/initialAdminPassword.txt")
fi

if [ -z "$ADMIN_PASSWORD" ]; then
Expand Down

0 comments on commit c9f245d

Please sign in to comment.