mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update 51-ocr
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
if bashio::config.has_value 'OCR'; then
|
if bashio::config.has_value 'OCR'; then
|
||||||
if $(bashio::config 'OCR') = true; then
|
if $(bashio::config 'OCR') = true; then
|
||||||
bashio::log.info 'Installing OCR'
|
bashio::log.info 'Installing OCR'
|
||||||
apk add --no-cache leptonica-dev tesseract-ocr-dev
|
#apk add --no-cache leptonica-dev tesseract-ocr-dev
|
||||||
# Install additional language if requested
|
# Install additional language if requested
|
||||||
if bashio::config.has_value 'OCRLANG'; then
|
if bashio::config.has_value 'OCRLANG'; then
|
||||||
bashio::log.info 'Installing OCR language'
|
bashio::log.info 'Installing OCR language'
|
||||||
@@ -12,7 +12,7 @@ if bashio::config.has_value 'OCR'; then
|
|||||||
fi
|
fi
|
||||||
elif $(bashio::config 'OCR') = false; then
|
elif $(bashio::config 'OCR') = false; then
|
||||||
bashio::log.info 'Removing OCR'
|
bashio::log.info 'Removing OCR'
|
||||||
apk del tesseract-ocr.*
|
apk del tesseract-ocr.* || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user