From f0b880775da4f06ce1a46f7852db4d21431142cf Mon Sep 17 00:00:00 2001 From: Sushil Shrestha Date: Thu, 17 May 2018 13:16:35 +0545 Subject: [PATCH] fix for psql command on extending the script --- postgres/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/content.md b/postgres/content.md index 9b4014c42..96183aafa 100644 --- a/postgres/content.md +++ b/postgres/content.md @@ -142,7 +142,7 @@ For example, to add an additional user and database, add the following to `/dock #!/bin/bash set -e -psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL +psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL CREATE USER docker; CREATE DATABASE docker; GRANT ALL PRIVILEGES ON DATABASE docker TO docker;