WSL/SLF GitLab Repository

Commit 2eecb67b authored by Sam's avatar Sam
Browse files

fix entrypoint to accept postgres conn string

parent 0f78a74d
......@@ -23,13 +23,8 @@ else
abort "ERROR: No CKAN config file provided."
fi
# Extract credentials from CKAN_SQLALCHEMY_URL
IFS=@ read -r CREDENTIALS CONNECTION <<< "$CKAN_SQLALCHEMY_URL"
IFS=/ read -r PG_DB _ <<< "$CREDENTIALS"
IFS=// read -r _ PG_CREDS <<< "$CONNECTION"
IFS=: read -r PG_USER _ <<< "$PG_CREDS"
# Wait for PostgreSQL
while ! pg_isready -h "$PG_DB" -U "$PG_USER"; do
while ! pg_isready -d "$CKAN_SQLALCHEMY_URL"; do
sleep 1;
done
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment