Skip to content

Commit

Permalink
Fix entrypoint.sh for redis host and port
Browse files Browse the repository at this point in the history
  • Loading branch information
Poulpatine authored and bbinier-sevenhugs committed Mar 24, 2020
1 parent bed7779 commit 831bb34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ if [ "$AIRFLOW__CORE__EXECUTOR" = "CeleryExecutor" ]; then
else
# Derive useful variables from the AIRFLOW__ variables provided explicitly by the user
REDIS_ENDPOINT=$(echo -n "$AIRFLOW__CELERY__BROKER_URL" | cut -d '/' -f3 | sed -e 's,.*@,,')
REDIS_HOST=$(echo -n "$POSTGRES_ENDPOINT" | cut -d ':' -f1)
REDIS_PORT=$(echo -n "$POSTGRES_ENDPOINT" | cut -d ':' -f2)
REDIS_HOST=$(echo -n "$REDIS_ENDPOINT" | cut -d ':' -f1)
REDIS_PORT=$(echo -n "$REDIS_ENDPOINT" | cut -d ':' -f2)
fi

wait_for_port "Redis" "$REDIS_HOST" "$REDIS_PORT"
Expand Down

0 comments on commit 831bb34

Please sign in to comment.