From 24eee0bb3d7fef3102c64b1ccfa6c13cdb07bc55 Mon Sep 17 00:00:00 2001 From: Greyson Dehn Date: Tue, 3 Aug 2021 12:25:45 -0500 Subject: [PATCH] Fix redis env var references in entrypoint Change incorrect env references from `POSTGRES_ENDPOINT` to `REDIS_ENDPOINT` --- script/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/entrypoint.sh b/script/entrypoint.sh index 166f4837..f7faba34 100755 --- a/script/entrypoint.sh +++ b/script/entrypoint.sh @@ -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"