File tree 11 files changed +77
-66
lines changed
11 files changed +77
-66
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ docker_init_database_dir() {
88
88
}
89
89
90
90
# print large warning if POSTGRES_PASSWORD is long
91
- # error if both POSTGRES_PASSWORD is unset and POSTGRES_HOST_AUTH_METHOD is not 'trust'
91
+ # error if both POSTGRES_PASSWORD is empty and POSTGRES_HOST_AUTH_METHOD is not 'trust'
92
92
# print large warning if POSTGRES_HOST_AUTH_METHOD is set to 'trust'
93
93
# assumes database is not set up, ie: [ -z "$DATABASE_ALREADY_EXISTS" ]
94
94
docker_verify_minimum_env () {
@@ -110,12 +110,13 @@ docker_verify_minimum_env() {
110
110
# The - option suppresses leading tabs but *not* spaces. :)
111
111
cat >&2 << -'EOE '
112
112
Error: Database is uninitialized and superuser password is not specified.
113
- You must specify POSTGRES_PASSWORD for the superuser. Use
114
- "-e POSTGRES_PASSWORD=password" to set it in "docker run".
113
+ You must specify POSTGRES_PASSWORD to a non-empty value for the
114
+ superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
115
115
116
- You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
117
- without a password. This is *not* recommended. See PostgreSQL
118
- documentation about "trust":
116
+ You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
117
+ connections without a password. This is *not* recommended.
118
+
119
+ See PostgreSQL documentation about "trust":
119
120
https://www.postgresql.org/docs/current/auth-trust.html
120
121
EOE
121
122
exit 1
You can’t perform that action at this time.
0 commit comments