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:
@@ -37,7 +37,7 @@ sources:
|
|||||||
- https://github.com/nextcloud/docker
|
- https://github.com/nextcloud/docker
|
||||||
- https://github.com/nextcloud/helm
|
- https://github.com/nextcloud/helm
|
||||||
type: application
|
type: application
|
||||||
version: 19.0.34
|
version: 19.0.35
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- cloud
|
- cloud
|
||||||
|
|||||||
@@ -93,11 +93,10 @@ probes:
|
|||||||
|
|
||||||
initContainers:
|
initContainers:
|
||||||
prestart:
|
prestart:
|
||||||
image: "{{ .Values.ubuntuImage.repository }}:{{ .Values.ubuntuImage.tag }}"
|
image: "{{ .Values.alpineImage.repository }}:{{ .Values.alpineImage.tag }}"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
privileged: true
|
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-c"
|
- "-c"
|
||||||
@@ -105,7 +104,7 @@ initContainers:
|
|||||||
/bin/bash <<'EOF'
|
/bin/bash <<'EOF'
|
||||||
echo "Forcing permissions on userdata folder..."
|
echo "Forcing permissions on userdata folder..."
|
||||||
echo "Trying to override ownship using nfs4xdr_winacl..."
|
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..."
|
chmod 770 /var/www/html/data || echo "Failed to chmod..."
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user