Skip to content

Commit

Permalink
Turn pipefail option off to not change behaviour beyond the function …
Browse files Browse the repository at this point in the history
…scope
  • Loading branch information
hhorak committed Jul 19, 2023
1 parent 9f07503 commit ce36d63
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions 10/root/usr/share/container-scripts/postgresql/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ migrate_db ()
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
| grep -v '^CREATE ROLE postgres;'
) | psql
set +o pipefail
}

function set_pgdata ()
Expand Down
1 change: 1 addition & 0 deletions 12/root/usr/share/container-scripts/postgresql/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ migrate_db ()
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
| grep -v '^CREATE ROLE postgres;'
) | psql
set +o pipefail
}

function set_pgdata ()
Expand Down
1 change: 1 addition & 0 deletions 13/root/usr/share/container-scripts/postgresql/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ migrate_db ()
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
| grep -v '^CREATE ROLE postgres;'
) | psql
set +o pipefail
}

function set_pgdata ()
Expand Down
1 change: 1 addition & 0 deletions 14/root/usr/share/container-scripts/postgresql/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ migrate_db ()
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
| grep -v '^CREATE ROLE postgres;'
) | psql
set +o pipefail
}

function set_pgdata ()
Expand Down
1 change: 1 addition & 0 deletions 15/root/usr/share/container-scripts/postgresql/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ migrate_db ()
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
| grep -v '^CREATE ROLE postgres;'
) | psql
set +o pipefail
}

function set_pgdata ()
Expand Down
1 change: 1 addition & 0 deletions src/root/usr/share/container-scripts/postgresql/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ migrate_db ()
pg_dumpall -h "$POSTGRESQL_MIGRATION_REMOTE_HOST" \
| grep -v '^CREATE ROLE postgres;'
) | psql
set +o pipefail
}

function set_pgdata ()
Expand Down

0 comments on commit ce36d63

Please sign in to comment.