fixed owncloud chart permission

This commit is contained in:
2025-01-14 03:14:42 +01:00
parent 5231bb013a
commit 0272324b39
3 changed files with 17 additions and 10 deletions

View File

@ -25,7 +25,14 @@ initContainers:
- sh
- -c
- |
chown -R 33:33 /var/www/owncloud/config /var/www/owncloud/data
# Create directories if they don't exist
mkdir -p /var/www/owncloud/config /var/www/owncloud/data
# Set permissions but preserve mount points
find /var/www/owncloud/config -exec chown 33:33 {} \;
find /var/www/owncloud/data -exec chown 33:33 {} \;
# Ensure base directories have correct permissions
chown 33:33 /var/www/owncloud/config
chown 33:33 /var/www/owncloud/data
# Database configuration
database: