Merge pull request #1227 from SushilShrestha/postgres-doc-fix

psql command with the --dbname params
This commit is contained in:
Tianon Gravi 2018-05-17 10:06:58 -07:00 committed by GitHub
commit 1981b98ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;