Repair OCR languages

This commit is contained in:
Alexandre
2021-11-01 22:43:36 +01:00
parent 29bd4e7a6c
commit 856b25d596
3 changed files with 8 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
- Repaired use own certs
- Repair increment of trusted domains
- Repaired increment of trusted domains
- Repaired setting OCR language
## 22.2.0 (02-10-2021)
- Update to latest version from linuxserver/docker-nextcloud

View File

@@ -1,24 +1,16 @@
{
"name": "Nextcloud OCR",
"url": "https://github.com/alexbelgium/hassio-addons",
"version": "22.2.0-4",
"version": "22.2.0-5",
"upstream": "22.2.0",
"slug": "nextcloud_ocr",
"ingress": false,
"ingress_port": 0,
"arch": [
"aarch64",
"amd64",
"armv7"
],
"arch": ["aarch64", "amd64", "armv7"],
"description": "Nextcloud for Home Assistant",
"boot": "manual",
"uart": true,
"map": [
"share:rw",
"media:rw",
"ssl:rw"
],
"map": ["share:rw", "media:rw", "ssl:rw"],
"ports": {
"443/tcp": 8099,
"80/tcp": null

View File

@@ -7,8 +7,9 @@ if bashio::config.has_value 'OCR'; then
apk add --no-cache tesseract-ocr || apk add --no-cache tesseract-ocr@community
# 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') || apk add --no-cache tesseract-ocr-data-$(bashio::config 'OCRLANG')@community
LANG=$(bashio::config 'OCRLANG')
bashio::log.info "Installing OCR language : $LANG"
apk add --no-cache tesseract-ocr-data-$LANG || apk add --no-cache tesseract-ocr-data-$LANG@community
fi
elif $(bashio::config 'OCR') = false; then
bashio::log.info 'Removing OCR'