staging-sync/koji: Fail on psql errors
This commit is contained in:
parent
999bca9cad
commit
4321755fb3
1 changed files with 3 additions and 3 deletions
|
@ -80,11 +80,11 @@
|
|||
mbuffer -q -m 100M -l /tmp/mbuffer-xz-to-sed.log |
|
||||
sed '/COPY buildroot_listing /,/\./d' |
|
||||
mbuffer -q -m 1G -l /tmp/mbuffer-sed-to-psql.log |
|
||||
psql koji
|
||||
psql -v ON_ERROR_STOP=1 koji
|
||||
- name: repoint all the prod rpm entries at the secondary volume (and other stuff)
|
||||
shell: psql -1 koji </var/lib/pgsql/koji-reset-staging.sql
|
||||
shell: psql -1 -v ON_ERROR_STOP=1 koji </var/lib/pgsql/koji-reset-staging.sql
|
||||
- name: vacuum database
|
||||
shell: psql koji <<<"VACUUM ANALYZE"
|
||||
shell: psql -v ON_ERROR_STOP=1 koji <<<"VACUUM ANALYZE"
|
||||
|
||||
- name: bring staging services up
|
||||
hosts: koji-stg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue