From 405b2ca1474a3f3fc99f511b792c50df08558080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 22 Nov 2021 23:29:23 +0100 Subject: [PATCH] =?UTF-8?q?P=C5=99eps=C3=A1n=C3=AD=20vol=C3=A1n=C3=AD=20ba?= =?UTF-8?q?she=20na=20p=C5=99=C3=ADm=C3=A9=20vol=C3=A1n=C3=AD=20psql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6d16b7cf..1364572f 100644 --- a/Makefile +++ b/Makefile @@ -120,7 +120,7 @@ sync_test_db_aggressive: pg_dump mam_test > dump-test-`date +"%Y%m%d_%H%M"`.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 - 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 rm dump-prod.sql psql mam_test -c "UPDATE django_site SET name='MaMweb (test)', domain='mam-test.ks.matfyz.cz' WHERE id=1"