From 10e114c5f8c5238eeb8420cd1032a2ed805974a7 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Thu, 2 Feb 2023 12:45:08 +0100 Subject: [PATCH] fix(helm): chown database volume for postgres Signed-off-by: Richard Steinmetz --- .../templates/nextcloud-aio-database-deployment.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helm-chart/templates/nextcloud-aio-database-deployment.yaml b/helm-chart/templates/nextcloud-aio-database-deployment.yaml index 1069990e..481a0dcc 100755 --- a/helm-chart/templates/nextcloud-aio-database-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-database-deployment.yaml @@ -25,10 +25,10 @@ spec: - name: init-volumes image: alpine command: - - chmod - - "777" - - /nextcloud-aio-database - - /nextcloud-aio-database-dump + - sh + - -c + - "chmod 777 /nextcloud-aio-database /nextcloud-aio-database-dump + && chown 999:999 /nextcloud-aio-database" volumeMounts: - name: nextcloud-aio-database-dump mountPath: /nextcloud-aio-database-dump