From 41ff4b36dc73b7d27fe61e2980013aa82f65576f Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Thu, 29 Dec 2022 14:17:49 +0100 Subject: [PATCH] fix(nextcloud): don't recursively chown userdata by default and default to alpine container (#5871) * fix(nextcloud): don't recursively chown userdata by default Signed-off-by: Kjeld Schouten-Lebbing * bump Signed-off-by: Kjeld Schouten-Lebbing Signed-off-by: Kjeld Schouten-Lebbing --- charts/stable/nextcloud/Chart.yaml | 2 +- charts/stable/nextcloud/values.yaml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/charts/stable/nextcloud/Chart.yaml b/charts/stable/nextcloud/Chart.yaml index ae94cf46919..1f2d137b1ef 100644 --- a/charts/stable/nextcloud/Chart.yaml +++ b/charts/stable/nextcloud/Chart.yaml @@ -37,7 +37,7 @@ sources: - https://github.com/nextcloud/docker - https://github.com/nextcloud/helm type: application -version: 19.0.34 +version: 19.0.35 annotations: truecharts.org/catagories: | - cloud diff --git a/charts/stable/nextcloud/values.yaml b/charts/stable/nextcloud/values.yaml index b233e07fdcf..cbc2163fb74 100644 --- a/charts/stable/nextcloud/values.yaml +++ b/charts/stable/nextcloud/values.yaml @@ -93,11 +93,10 @@ probes: initContainers: prestart: - image: "{{ .Values.ubuntuImage.repository }}:{{ .Values.ubuntuImage.tag }}" + image: "{{ .Values.alpineImage.repository }}:{{ .Values.alpineImage.tag }}" securityContext: runAsUser: 0 runAsGroup: 0 - privileged: true command: - "/bin/sh" - "-c" @@ -105,7 +104,7 @@ initContainers: /bin/bash <<'EOF' echo "Forcing permissions on userdata folder..." echo "Trying to override ownship using nfs4xdr_winacl..." - /usr/bin/nfs4xdr_winacl -a chown -G 33 -r -c '/var/www/html/data' -p '/var/www/html/data' || echo "Failed setting ownership..." + /usr/bin/nfs4xdr_winacl -a chown -G 33 -c '/var/www/html/data' -p '/var/www/html/data' || echo "Failed setting ownership..." chmod 770 /var/www/html/data || echo "Failed to chmod..." EOF