diff --git a/nextcloud/root/etc/cont-init.d/51-ocr b/nextcloud/root/etc/cont-init.d/51-ocr index 4d9adb6e3..1968d06a7 100644 --- a/nextcloud/root/etc/cont-init.d/51-ocr +++ b/nextcloud/root/etc/cont-init.d/51-ocr @@ -4,11 +4,12 @@ if bashio::config.has_value 'OCR'; then if $(bashio::config 'OCR') = true; then bashio::log.info 'Installing OCR' - #apk add --no-cache leptonica-dev tesseract-ocr-dev + apk del tesseract* || true + apk add --no-cache tesseract-ocr@community # Install additional language if requested if bashio::config.has_value 'OCRLANG'; then bashio::log.info 'Installing OCR language' - apk add --no-cache tesseract-ocr-data-$(bashio::config 'OCRLANG') + apk add --no-cache tesseract-ocr-data-$(bashio::config 'OCRLANG')@community fi elif $(bashio::config 'OCR') = false; then bashio::log.info 'Removing OCR'