فهرست منبع

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

psql command with the --dbname params
Tianon Gravi 7 سال پیش
والد
کامیت
1981b98ee6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      postgres/content.md

+ 1 - 1
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;