File tree Expand file tree Collapse file tree 13 files changed +26
-13
lines changed Expand file tree Collapse file tree 13 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ docker_create_db_directories() {
3737 local user; user=" $( id -u) "
3838
3939 mkdir -p " $PGDATA "
40- chmod 700 " $PGDATA "
40+ # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory)
41+ chmod 700 " $PGDATA " || :
4142
4243 # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289
4344 mkdir -p /var/run/postgresql || :
You can’t perform that action at this time.
0 commit comments