Skip to content

Commit b7063b0

Browse files
add pipefail to migrate_db function
1 parent 2b2afea commit b7063b0

File tree

6 files changed

+6
-0
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
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ migrate_db ()
250250

251251
# Migration path.
252252
(
253+
set -o pipefail
253254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
254255
echo '\set ON_ERROR_STOP on'
255256
fi

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ migrate_db ()
250250

251251
# Migration path.
252252
(
253+
set -o pipefail
253254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
254255
echo '\set ON_ERROR_STOP on'
255256
fi

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ migrate_db ()
250250

251251
# Migration path.
252252
(
253+
set -o pipefail
253254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
254255
echo '\set ON_ERROR_STOP on'
255256
fi

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ migrate_db ()
250250

251251
# Migration path.
252252
(
253+
set -o pipefail
253254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
254255
echo '\set ON_ERROR_STOP on'
255256
fi

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ migrate_db ()
250250

251251
# Migration path.
252252
(
253+
set -o pipefail
253254
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
254255
echo '\set ON_ERROR_STOP on'
255256
fi

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ migrate_db ()
251251

252252
# Migration path.
253253
(
254+
set -o pipefail
254255
if [ ${POSTGRESQL_MIGRATION_IGNORE_ERRORS-no} = no ]; then
255256
echo '\set ON_ERROR_STOP on'
256257
fi

0 commit comments

Comments
 (0)