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

[FIX] error if db name contained in db user

parent 11bbb64a
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ while true; do
sleep 1
done
if ! psql --list 2> /dev/null | grep $PGDATABASE > /dev/null 2>&1; then
if ! psql --list --no-align --tuples-only 2> /dev/null | grep ^$PGDATABASE\| > /dev/null 2>&1; 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.
Finish editing this message first!
Please register or to comment