8000 Add POSTGRES_INITDB_ARGS env var · duckybsd/postgres@a511763 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a511763

Browse files
committed
Add POSTGRES_INITDB_ARGS env var
1 parent 48d6cd0 commit a511763

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

9.1/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
1515

1616
# look specifically for PG_VERSION, as it is expected in the DB dir
1717
if [ ! -s "$PGDATA/PG_VERSION" ]; then
18-
gosu postgres initdb
18+
gosu postgres initdb "$POSTGRES_INITDB_ARGS"
1919

2020
# check password first so we can output the warning before postgres
2121
# messes it up

9.2/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
1515

1616
# look specifically for PG_VERSION, as it is expected in the DB dir
1717
if [ ! -s "$PGDATA/PG_VERSION" ]; then
18-
gosu postgres initdb
18+
gosu postgres initdb "$POSTGRES_INITDB_ARGS"
1919

2020
# check password first so we can output the warning before postgres
2121
# messes it up

9.3/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
1515

1616
# look specifically for PG_VERSION, as it is expected in the DB dir
1717
if [ ! -s "$PGDATA/PG_VERSION" ]; then
18-
gosu postgres initdb
18+
gosu postgres initdb "$POSTGRES_INITDB_ARGS"
1919

2020
# check password first so we can output the warning before postgres
2121
# messes it up

9.4/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
1515

1616
# look specifically for PG_VERSION, as it is expected in the DB dir
1717
if [ ! -s "$PGDATA/PG_VERSION" ]; then
18-
gosu postgres initdb
18+
gosu postgres initdb "$POSTGRES_INITDB_ARGS"
1919

2020
# check password first so we can output the warning before postgres
2121
# messes it up

9.5/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
1515

1616
# look specifically for PG_VERSION, as it is expected in the DB dir
1717
if [ ! -s "$PGDATA/PG_VERSION" ]; then
18-
gosu postgres initdb
18+
gosu postgres initdb "$POSTGRES_INITDB_ARGS"
1919

2020
# check password first so we can output the warning before postgres
2121
# messes it up

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
1515

1616
# look specifically for PG_VERSION, as it is expected in the DB dir
1717
if [ ! -s "$PGDATA/PG_VERSION" ]; then
18-
gosu postgres initdb
18+
gosu postgres initdb "$POSTGRES_INITDB_ARGS"
1919

2020
# check password first so we can output the warning before postgres
2121
# messes it up

0 commit comments

Comments
 (0)
0