You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 10/alpine/docker-entrypoint.sh
+29-29
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ _is_sourced() {
31
31
}
32
32
33
33
# used to create initial posgres directories and if run as root, ensure ownership to the "postgres" user
34
-
create_postgres_dirs() {
34
+
docker_create_database_dirs() {
35
35
local user="$(id -u)"
36
36
37
37
mkdir -p "$PGDATA"
@@ -56,7 +56,7 @@ create_postgres_dirs() {
56
56
}
57
57
58
58
# initialize empty PGDATA directory with new database via 'initdb'
59
-
init_pgdata() {
59
+
docker_init_database_dir() {
60
60
# "initdb" is particular about the current user existing in "/etc/passwd", so we use "nss_wrapper" to fake that if necessary
61
61
# see https://github.com/docker-library/postgres/pull/253, https://github.com/docker-library/postgres/issues/359, https://cwrap.org/nss_wrapper.html
Copy file name to clipboardExpand all lines: 10/docker-entrypoint.sh
+29-29
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ _is_sourced() {
31
31
}
32
32
33
33
# used to create initial posgres directories and if run as root, ensure ownership to the "postgres" user
34
-
create_postgres_dirs() {
34
+
docker_create_database_dirs() {
35
35
local user="$(id -u)"
36
36
37
37
mkdir -p "$PGDATA"
@@ -56,7 +56,7 @@ create_postgres_dirs() {
56
56
}
57
57
58
58
# initialize empty PGDATA directory with new database via 'initdb'
59
-
init_pgdata() {
59
+
docker_init_database_dir() {
60
60
# "initdb" is particular about the current user existing in "/etc/passwd", so we use "nss_wrapper" to fake that if necessary
61
61
# see https://github.com/docker-library/postgres/pull/253, https://github.com/docker-library/postgres/issues/359, https://cwrap.org/nss_wrapper.html
0 commit comments