From 8b002c7a7c5f0f62b5378e43188773e37f5634f4 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 13 Sep 2021 02:58:48 -0400 Subject: [PATCH] fix: do not create the new database automatically This should only be done if importing a given database. Instead, always import into the specified database name. Refs #218 --- functions | 2 +- test-export | Bin 0 -> 1878 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 test-export diff --git a/functions b/functions index 1e6c920..d571f04 100755 --- a/functions +++ b/functions @@ -133,7 +133,7 @@ service_import() { if [[ -t 0 ]]; then dokku_log_fail "No data provided on stdin." fi - docker exec -i "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_restore -h localhost -cO --if-exists -C -d "$DATABASE_NAME" -U postgres -w + docker exec -i "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_restore -h localhost -cO --if-exists -d "$DATABASE_NAME" -U postgres -w } service_start() { diff --git a/test-export b/test-export new file mode 100644 index 0000000000000000000000000000000000000000..dc41719e12e8b3b32481722559363a4407acc997 GIT binary patch literal 1878 zcmbVN&2G~`5Z*vRB@_-7Qu&dpJ&{BW!A{et6{>_u+$O^LQR1rf6fO4FiAWsFc16q2 z8*t~s3zfn{fVgns!~-xhP8^yhqGF_sy*snx@0*#OGnpgVrQt()BH_oN$kq-zcBp6l>!p4u~aHd9ZM#A&W#*C4>5=m(Nq zu3}7*w=>Zs!PYj*ZLx`hjfSpoH*G!#{4IDd;?^n$VH}zW6 zK-)HK4!phyrNYOZ5f`5ujgn@dQ%bs>y>{*>Jj9k@ckpwqM)Q2=*&M0qykQVJz6|EJ z3*8im%7|0GsBVmC78G?t6TRA{ieA$ql89qOGTJ7J0B{)$1n}JUtS-JByiE)tn@s z_#^$U6yBV)(a