Skip to content

Commit

Permalink
Make local stack scripts work
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstory committed Nov 14, 2024
1 parent 3e9daea commit 2a0b714
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/stack/run-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ if [[ "${connectors_only}" != true ]]; then
source $CURDIR/wait-for-elasticsearch.sh

# Start Kibana
source $CURDIR/update-kibana-user-password.sh
echo "Starting Kibana..."
docker-compose -f $compose_file up --detach kibana
source $CURDIR/wait-for-kibana.sh
source $CURDIR/update-kibana-user-password.sh
fi

source ./copy-config.sh
Expand Down
4 changes: 0 additions & 4 deletions scripts/stack/update-kibana-user-password.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ if [[ ${CURDIR:-} == "" ]]; then
export CURDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
fi

if [[ "${ELASTIC_PASSWORD:-}" == "" ]]; then
source $CURDIR/read-env.sh $CURDIR/.env
fi

echo "Updating Kibana password in Elasticsearch running on $ELASTICSEARCH_URL"
change_data="{ \"password\": \"${ELASTIC_PASSWORD}\" }"
curl -u elastic:$ELASTIC_PASSWORD "$@" -X POST "${ELASTICSEARCH_URL}/_security/user/kibana_system/_password?pretty" -H 'Content-Type: application/json' -d"${change_data}"

0 comments on commit 2a0b714

Please sign in to comment.