mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Repair OCR languages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user