Browse Source

Přepsání volání bashe na přímé volání psql

export_seznamu_prednasek
Jonas Havelka 3 years ago
parent
commit
405b2ca147
  1. 2
      Makefile

2
Makefile

@ -120,7 +120,7 @@ sync_test_db_aggressive:
pg_dump mam_test > dump-test-`date +"%Y%m%d_%H%M"`.sql pg_dump mam_test > dump-test-`date +"%Y%m%d_%H%M"`.sql
pg_dump -Fc mam_prod > dump-prod.sql pg_dump -Fc mam_prod > dump-prod.sql
@# I am not sure which shell is used, so I am calling bash to make sure @# I am not sure which shell is used, so I am calling bash to make sure
bash -c "psql mam_test <<< 'DROP OWNED BY \"mam-web\";'" psql mam_test -c 'DROP OWNED BY "mam-web";'
pg_restore -c --if-exists -d mam_test dump-prod.sql pg_restore -c --if-exists -d mam_test dump-prod.sql
rm dump-prod.sql rm dump-prod.sql
psql mam_test -c "UPDATE django_site SET name='MaMweb (test)', domain='mam-test.ks.matfyz.cz' WHERE id=1" psql mam_test -c "UPDATE django_site SET name='MaMweb (test)', domain='mam-test.ks.matfyz.cz' WHERE id=1"

Loading…
Cancel
Save