Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit36ffea2

Browse files
committed
Adjust "chmod" to not fail (since PostgreSQL validates this itself later)
1 parent3690694 commit36ffea2

13 files changed

+26
-13
lines changed

‎10/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎10/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎11/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎11/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎12/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎12/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎13/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎13/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎9.5/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

‎9.5/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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||:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp