Improve nextcloud loadingtimes by checking for group (#3599)
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: 15.3.0
|
version: 15.3.1
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- cloud
|
- cloud
|
||||||
|
|||||||
@@ -109,7 +109,13 @@ initContainers:
|
|||||||
nfs4_setfacl -R -a A:g:33:RWX "/var/www/html/data"
|
nfs4_setfacl -R -a A:g:33:RWX "/var/www/html/data"
|
||||||
else
|
else
|
||||||
echo "No NFSv4 ACLs detected, trying to override permissions using chown/chmod..."
|
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
|
chmod 770 /var/www/html/data
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user