From 2db926cd214d8e4d83bc6bae23c740dee385d432 Mon Sep 17 00:00:00 2001 From: James Manuel Date: Wed, 10 Jun 2026 12:48:29 +0200 Subject: [PATCH] fix(nextcloud): register EuroOffice preview provider Adds OCA\Eurooffice\Preview to enabledPreviewProviders at index 50 to avoid colliding with AIO's seeded indices (1-7, 23). The check is idempotent so re-running entrypoint.sh is safe. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: James Manuel --- Containers/nextcloud/entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index b90b4011..04f7bbde 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -908,6 +908,12 @@ if [ "$EUROOFFICE_ENABLED" = 'yes' ]; then fi php /var/www/html/occ config:app:set eurooffice DocumentServerUrl --value="https://$EUROOFFICE_HOST" + + # Register EuroOffice preview provider in the explicit allowlist. + # Use a high fixed index (50) to avoid colliding with AIO's seeded indices (1-7, 23). + if ! php /var/www/html/occ config:system:get enabledPreviewProviders | grep -q "Eurooffice"; then + php /var/www/html/occ config:system:set enabledPreviewProviders 50 --value="OCA\Eurooffice\Preview" + fi fi else # Remove EuroOffice app if disabled and removal is requested