Skip to content

Commit

Permalink
fix(elastic-setup) Fixing env var logic (datahub-project#6079)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro93 authored Sep 29, 2022
1 parent 74d9fa2 commit f83eb6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/elasticsearch-setup/create-indices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e

: ${DATAHUB_ANALYTICS_ENABLED:=true}
: ${USE_AWS_ELASTICSEARCH:=false}
: ${ELASTICSEARCH_INSECURE:=false}

if [[ $ELASTICSEARCH_USE_SSL == true ]]; then
ELASTICSEARCH_PROTOCOL=https
Expand All @@ -23,8 +24,11 @@ if [[ -z $ELASTICSEARCH_AUTH_HEADER ]]; then
ELASTICSEARCH_AUTH_HEADER="Accept: */*"
fi

if [[ $ELASTICSEARCH_INSECURE ]]; then
if [[ $ELASTICSEARCH_INSECURE == true ]]; then
echo -e "Going to use default elastic insecure mode"
ELASTICSEARCH_INSECURE="-k "
else
unset ELASTICSEARCH_INSECURE
fi

function create_datahub_usage_event_datastream() {
Expand Down

0 comments on commit f83eb6f

Please sign in to comment.