From ff11ff29a066412d669b8e5ff26f250f5d498d46 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:14:25 +0100 Subject: [PATCH] Update 51-ocr --- nextcloud/root/etc/cont-init.d/51-ocr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextcloud/root/etc/cont-init.d/51-ocr b/nextcloud/root/etc/cont-init.d/51-ocr index b3cae478b..cc51edda3 100644 --- a/nextcloud/root/etc/cont-init.d/51-ocr +++ b/nextcloud/root/etc/cont-init.d/51-ocr @@ -8,8 +8,8 @@ if bashio::config.has_value 'OCR'; then # Install additional language if requested if bashio::config.has_value 'OCRLANG'; then LANG=$(bashio::config 'OCRLANG') - apk add --quiet --no-cache tesseract-ocr-data-$LANG || apk add --quiet --no-cache tesseract-ocr-data-$LANG@community - bashio::log.info "OCR Language installed : $LANG" + apk add --quiet --no-cache tesseract-ocr-data-$LANG || apk add --quiet --no-cache tesseract-ocr-data-$LANG@community \ + && bashio::log.info "OCR Language installed : $LANG" || bashio::log.fatal "Couldn't install OCR lang $LANG. Please check its format is conform" fi elif $(bashio::config 'OCR') = false; then bashio::log.info 'Removing OCR'