Skip to content

Commit 3a516df

Browse files
Merge pull request #1 from hhorak/pipefail2
Turn pipefail option off to not change behaviour beyond the function scope
2 parents 9f07503 + ce36d63 commit 3a516df

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
@@ -260,6 +260,7 @@ migrate_db ()
260260
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
261261
| grep -v '^CREATE ROLE postgres;'
262262
) | psql
263+
set +o pipefail
263264
}
264265

265266
function set_pgdata ()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ migrate_db ()
260260
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
261261
| grep -v '^CREATE ROLE postgres;'
262262
) | psql
263+
set +o pipefail
263264
}
264265

265266
function set_pgdata ()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ migrate_db ()
260260
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
261261
| grep -v '^CREATE ROLE postgres;'
262262
) | psql
263+
set +o pipefail
263264
}
264265

265266
function set_pgdata ()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ migrate_db ()
260260
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
261261
| grep -v '^CREATE ROLE postgres;'
262262
) | psql
263+
set +o pipefail
263264
}
264265

265266
function set_pgdata ()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ migrate_db ()
260260
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
261261
| grep -v '^CREATE ROLE postgres;'
262262
) | psql
263+
set +o pipefail
263264
}
264265

265266
function set_pgdata ()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ migrate_db ()
261261
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
262262
| grep -v '^CREATE ROLE postgres;'
263263
) | psql
264+
set +o pipefail
264265
}
265266

266267
function set_pgdata ()

0 commit comments

Comments
 (0)