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 <kjeld@schouten-lebbing.nl>

* bump

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten-Lebbing
2022-12-29 14:17:49 +01:00
committed by GitHub
parent bee96c8a7d
commit 41ff4b36dc
2 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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