From f81838aefc7176574315aead18564dc7d4c26273 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sat, 27 Aug 2022 23:28:03 +0200 Subject: [PATCH] Improve nextcloud loadingtimes by checking for group (#3599) --- charts/stable/nextcloud/Chart.yaml | 2 +- charts/stable/nextcloud/values.yaml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/stable/nextcloud/Chart.yaml b/charts/stable/nextcloud/Chart.yaml index 1223c301be1..beeb46c4d16 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: 15.3.0 +version: 15.3.1 annotations: truecharts.org/catagories: | - cloud diff --git a/charts/stable/nextcloud/values.yaml b/charts/stable/nextcloud/values.yaml index 99d1db95070..f5cedec511b 100644 --- a/charts/stable/nextcloud/values.yaml +++ b/charts/stable/nextcloud/values.yaml @@ -109,7 +109,13 @@ initContainers: nfs4_setfacl -R -a A:g:33:RWX "/var/www/html/data" else echo "No NFSv4 ACLs detected, trying to override permissions using chown/chmod..." - chown -R :33 "/var/www/html/data" + echo "checking ownership..." + if [ $(stat -c %g .) -eq 33 ]; then + echo "Ownership already set to 33, skipping..." + else + echo "Changing ownership to group 33..." + chown -R :33 "/var/www/html/data" + fi chmod 770 /var/www/html/data fi EOF