Update 51-install_options

This commit is contained in:
Alexandre
2021-01-18 16:25:26 +01:00
committed by GitHub
parent 632a709d64
commit 1b05ffc145

View File

@@ -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