From 68b7e33a0737d5dff738e9905583969ef342c7fa Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 8 Feb 2023 03:12:31 -0500 Subject: [PATCH] fix: remove old dump before writing it from the host --- functions | 1 + 1 file changed, 1 insertion(+) diff --git a/functions b/functions index a71e520..ed91b7e 100755 --- a/functions +++ b/functions @@ -179,6 +179,7 @@ service_import() { dokku_log_fail "No data provided on stdin." fi suppress_output service_container_rm "$SERVICE" + "$DOCKER_BIN" container run --rm -v "$SERVICE_HOST_ROOT/data:/data" "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" bash -c "rm -f /data/dump.rdb" cat > "$SERVICE_HOST_ROOT/data/dump.rdb" "$DOCKER_BIN" container run --rm -v "$SERVICE_HOST_ROOT/data:/data" "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" bash -c "chown redis: /data/dump.rdb" suppress_output service_start "$SERVICE"