浏览代码

fix for psql command on extending the script

Sushil Shrestha 7 年之前
父节点
当前提交
f0b880775d
共有 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;