mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-10 16:38:18 +00:00
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 <noreply@anthropic.com> Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
This commit is contained in:
@@ -908,6 +908,12 @@ if [ "$EUROOFFICE_ENABLED" = 'yes' ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
php /var/www/html/occ config:app:set eurooffice DocumentServerUrl --value="https://$EUROOFFICE_HOST"
|
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
|
fi
|
||||||
else
|
else
|
||||||
# Remove EuroOffice app if disabled and removal is requested
|
# Remove EuroOffice app if disabled and removal is requested
|
||||||
|
|||||||
Reference in New Issue
Block a user