Skip to content
Snippets Groups Projects
Commit 3c157358 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[FIX] entrypoint

parent 1b417694
Branches
No related tags found
No related merge requests found
......@@ -30,7 +30,14 @@ export PGUSER=$value
check_config "db_password" "$PASSWORD"
export PGPASSWORD=$value
if ! psql -l | grep $PGDATABASE; then
echo "waiting until postgres is listening at ${PGHOST}..."
while true; do
psql --list > /dev/null 2>&1 && break
sleep 1
done
if ! psql --list --no-align --tuples-only 2> /dev/null | grep ^$PGDATABASE\|; then
echo "Database $PGDATABASE does not exist"
DB_ARGS+=("--load-language")
DB_ARGS+=("fr_FR")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment