Skip to content

Commit 9f07503

Browse files
move pipefail outside of migration block
1 parent b20805e commit 9f07503

File tree

6 files changed

+6
-6
lines changed
  • 10/root/usr/share/container-scripts/postgresql
  • 12/root/usr/share/container-scripts/postgresql
  • 13/root/usr/share/container-scripts/postgresql
  • 14/root/usr/share/container-scripts/postgresql
  • 15/root/usr/share/container-scripts/postgresql
  • src/root/usr/share/container-scripts/postgresql

6 files changed

+6
-6
lines changed

10/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ migrate_db ()
248248
{
249249
test "$postinitdb_actions" = ",migration" || return 0
250250

251+
set -o pipefail
251252
# Migration path.
252253
(
253-
set -o pipefail
254254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
255255
echo '\set ON_ERROR_STOP on'
256256
fi

12/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ migrate_db ()
248248
{
249249
test "$postinitdb_actions" = ",migration" || return 0
250250

251+
set -o pipefail
251252
# Migration path.
252253
(
253-
set -o pipefail
254254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
255255
echo '\set ON_ERROR_STOP on'
256256
fi

13/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ migrate_db ()
248248
{
249249
test "$postinitdb_actions" = ",migration" || return 0
250250

251+
set -o pipefail
251252
# Migration path.
252253
(
253-
set -o pipefail
254254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
255255
echo '\set ON_ERROR_STOP on'
256256
fi

14/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ migrate_db ()
248248
{
249249
test "$postinitdb_actions" = ",migration" || return 0
250250

251+
set -o pipefail
251252
# Migration path.
252253
(
253-
set -o pipefail
254254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
255255
echo '\set ON_ERROR_STOP on'
256256
fi

15/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ migrate_db ()
248248
{
249249
test "$postinitdb_actions" = ",migration" || return 0
250250

251+
set -o pipefail
251252
# Migration path.
252253
(
253-
set -o pipefail
254254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
255255
echo '\set ON_ERROR_STOP on'
256256
fi

src/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ migrate_db ()
249249
{
250250
test "$postinitdb_actions" = ",migration" || return 0
251251

252+
set -o pipefail
252253
# Migration path.
253254
(
254-
set -o pipefail
255255
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
256256
echo '\set ON_ERROR_STOP on'
257257
fi

0 commit comments

Comments
 (0)