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