File tree Expand file tree Collapse file tree 13 files changed +91
-0
lines changed Expand file tree Collapse file tree 13 files changed +91
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ if [ "$1" = 'postgres' ]; then
139
139
140
140
psql+=( --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " )
141
141
142
+ # https://github.com/docker-library/postgres/issues/450#issuecomment-393167936
143
+ set +o pipefail
144
+ # TODO find a better solution to allowing initdb.d scripts to opt out of pipefail; perhaps checking for +x and a shebang or something?
145
+
142
146
echo
143
147
for f in /docker-entrypoint-initdb.d/* ; do
144
148
case " $f " in
@@ -150,6 +154,9 @@ if [ "$1" = 'postgres' ]; then
150
154
echo
151
155
done
152
156
157
+ # see note above re: issue #450
158
+ set -o pipefail
159
+
153
160
PGUSER=" ${PGUSER:- postgres} " \
154
161
pg_ctl -D " $PGDATA " -m fast -w stop
155
162
You can’t perform that action at this time.
0 commit comments