mirror of
https://github.com/truecharts/charts.git
synced 2026-07-25 15:04:31 -03:00
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:
committed by
GitHub
parent
bee96c8a7d
commit
41ff4b36dc
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user