From 6e97962624d9a654f8c3fbca81e9d3c25a1a6edb Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 22 Sep 2021 21:12:35 +0200 Subject: [PATCH] Update 51-ocr --- nextcloud/root/etc/cont-init.d/51-ocr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'