WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EnviDat
ckan-container
Commits
2eecb67b
Commit
2eecb67b
authored
Dec 24, 2021
by
Sam
Browse files
fix entrypoint to accept postgres conn string
parent
0f78a74d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckan-entrypoint.sh
View file @
2eecb67b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment