From 218d58acc9e8fcf00a1dc058b6394b734eefc527 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 22 Sep 2021 19:24:10 +0200 Subject: [PATCH] Update 51-ocr --- nextcloud/root/etc/cont-init.d/51-ocr | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nextcloud/root/etc/cont-init.d/51-ocr b/nextcloud/root/etc/cont-init.d/51-ocr index f2d3a76d9..5b30fc26c 100644 --- a/nextcloud/root/etc/cont-init.d/51-ocr +++ b/nextcloud/root/etc/cont-init.d/51-ocr @@ -3,15 +3,16 @@ # Install OCR if requested if bashio::config.has_value 'OCR'; then if $(bashio::config 'OCR') = true; then - bashio::log.info 'Installing OCR' && \ + bashio::log.info 'Installing OCR' + apk update apk add --no-cache tesseract-ocr # Install additional language if requested if bashio::config.has_value 'OCRLANG'; then - bashio::log.info 'Installing OCR language' && \ + bashio::log.info 'Installing OCR language' apk add --no-cache tesseract-ocr-data-$(bashio::config 'OCRLANG') fi elif $(bashio::config 'OCR') = false; then - bashio::log.info 'Removing OCR' && \ + bashio::log.info 'Removing OCR' apk del tesseract-ocr.* fi fi