feat: restore the imported database to the service's database

Refs #207
This commit is contained in:
Jose Diaz-Gonzalez
2021-09-12 23:48:10 -04:00
parent 4cef2b9207
commit 0387c2d30b

View File

@@ -125,7 +125,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 -d "$DATABASE_NAME" -U postgres -w docker exec -i "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_restore -h localhost -cO --if-exists -C -d "$DATABASE_NAME" -U postgres -w
} }
service_start() { service_start() {