Skip to content

Commit 21a6363

Browse files
authored
Merge pull request #1247 from infosiftr/pg-init
Update postgres initdb information about sourcing scripts vs executing then
2 parents 40ad075 + 42b3d7c commit 21a6363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The three easiest ways to get around this:
136136

137137
# How to extend this image
138138

139-
If you would like to do additional initialization in an image derived from this one, add one or more `*.sql`, `*.sql.gz`, or `*.sh` scripts under `/docker-entrypoint-initdb.d` (creating the directory if necessary). After the entrypoint calls `initdb` to create the default `postgres` user and database, it will run any `*.sql` files and source any `*.sh` scripts found in that directory to do further initialization before starting the service.
139+
If you would like to do additional initialization in an image derived from this one, add one or more `*.sql`, `*.sql.gz`, or `*.sh` scripts under `/docker-entrypoint-initdb.d` (creating the directory if necessary). After the entrypoint calls `initdb` to create the default `postgres` user and database, it will run any `*.sql` files, run any executable `*.sh` scripts, and source any non-executable `*.sh` scripts found in that directory to do further initialization before starting the service.
140140

141141
For example, to add an additional user and database, add the following to `/docker-entrypoint-initdb.d/init-user-db.sh`:
142142

0 commit comments

Comments
 (0)