From 1b05ffc1458be45ed329541779735d0b510ba106 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 18 Jan 2021 16:25:26 +0100 Subject: [PATCH] Update 51-install_options --- nextcloud/root/etc/cont-init.d/51-install_options | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nextcloud/root/etc/cont-init.d/51-install_options b/nextcloud/root/etc/cont-init.d/51-install_options index 8a94923a7..cee35fed6 100644 --- a/nextcloud/root/etc/cont-init.d/51-install_options +++ b/nextcloud/root/etc/cont-init.d/51-install_options @@ -5,13 +5,13 @@ if bashio::config.has_value 'OCR'; then if $(bashio::config 'OCR') = true; then bashio::log.info 'Installing OCR' && \ apk add --no-cache tesseract-ocr + # 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') + fi elif $(bashio::config 'OCR') = false; then bashio::log.info 'Removing OCR' && \ apk del tesseract-ocr.* fi - # 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') - fi fi