fix for psql command on extending the script

This commit is contained in:
Sushil Shrestha 2018-05-17 13:16:35 +05:45
parent f96074fb49
commit f0b880775d
1 changed files with 1 additions and 1 deletions

View File

@ -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;