From 46884bdd0cb919bc9ef0ec7498fda366ebd32088 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 6 Jan 2026 14:43:18 -0300 Subject: [PATCH] nextcloud: ensure data dir and perms --- scripts/nextcloud-maintenance.sh | 3 ++- services/nextcloud/deployment.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/nextcloud-maintenance.sh b/scripts/nextcloud-maintenance.sh index eb5ccca..ab38616 100755 --- a/scripts/nextcloud-maintenance.sh +++ b/scripts/nextcloud-maintenance.sh @@ -24,9 +24,10 @@ if [[ ! -d /var/www/html/lib && -d /usr/src/nextcloud/lib ]]; then fi log "Ensuring Nextcloud permissions" +mkdir -p /var/www/html/data chown 33:33 /var/www/html || true chmod 775 /var/www/html || true -chown -R 33:33 /var/www/html/apps /var/www/html/custom_apps 2>/dev/null || true +chown -R 33:33 /var/www/html/apps /var/www/html/custom_apps /var/www/html/data /var/www/html/config 2>/dev/null || true log "Applying Atlas theming" run_occ config:app:set theming name --value "Atlas Cloud" diff --git a/services/nextcloud/deployment.yaml b/services/nextcloud/deployment.yaml index 36f8227..be43cf4 100644 --- a/services/nextcloud/deployment.yaml +++ b/services/nextcloud/deployment.yaml @@ -31,6 +31,7 @@ spec: if [ ! -s /var/www/html/config/config.php ]; then rm -f /var/www/html/config/config.php || true fi + mkdir -p /var/www/html/data || true chown 33:33 /var/www/html || true chmod 775 /var/www/html || true chown -R 33:33 /var/www/html/config || true