From 64c9a5a6d087a1d69b673ac55fb0a68db02b00c6 Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Thu, 26 Aug 2021 17:14:07 +0200
Subject: [PATCH] Fixes restore.

---
 hedgedoc/other-manifests/restore.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hedgedoc/other-manifests/restore.yml b/hedgedoc/other-manifests/restore.yml
index 9a5bcdb..58a9622 100644
--- a/hedgedoc/other-manifests/restore.yml
+++ b/hedgedoc/other-manifests/restore.yml
@@ -24,7 +24,7 @@ spec:
         - /bin/sh
         - -c
         args:
-        - aws s3 cp s3://${NS}-dumps/migrations/$(date +%m-%d-%Y).sql.gz - --endpoint-url=https://minio.k7.indie.host --region=default | unpigz | pg_restore -d hedgedoc -h pg-${NS} -p 5432 -U hedgedoc
+        - aws s3 cp s3://${NS}-dumps/migrations/$(date +%m-%d-%Y).sql.gz - --endpoint-url=https://minio.k7.indie.host --region=default | unpigz | pg_restore -d hedgedoc -h pg-${NS} -p 5432 -U hedgedoc --clean --no-owner --role=hedgedoc
         env:
         - name: PGPASSWORD
           valueFrom:
-- 
GitLab