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
This commit is contained in:
Jose Diaz-Gonzalez
2021-09-13 02:58:48 -04:00
parent 7ca7c20ef8
commit 8b002c7a7c
2 changed files with 1 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ service_import() {
if [[ -t 0 ]]; then if [[ -t 0 ]]; then
dokku_log_fail "No data provided on stdin." dokku_log_fail "No data provided on stdin."
fi 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() { service_start() {

BIN
test-export Normal file

Binary file not shown.