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"