mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 01:55:59 +02:00
Repair OCR languages
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
- Repaired use own certs
|
- Repaired use own certs
|
||||||
- Repair increment of trusted domains
|
- Repaired increment of trusted domains
|
||||||
|
- Repaired setting OCR language
|
||||||
|
|
||||||
## 22.2.0 (02-10-2021)
|
## 22.2.0 (02-10-2021)
|
||||||
- Update to latest version from linuxserver/docker-nextcloud
|
- Update to latest version from linuxserver/docker-nextcloud
|
||||||
|
|||||||
@@ -1,24 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "Nextcloud OCR",
|
"name": "Nextcloud OCR",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "22.2.0-4",
|
"version": "22.2.0-5",
|
||||||
"upstream": "22.2.0",
|
"upstream": "22.2.0",
|
||||||
"slug": "nextcloud_ocr",
|
"slug": "nextcloud_ocr",
|
||||||
"ingress": false,
|
"ingress": false,
|
||||||
"ingress_port": 0,
|
"ingress_port": 0,
|
||||||
"arch": [
|
"arch": ["aarch64", "amd64", "armv7"],
|
||||||
"aarch64",
|
|
||||||
"amd64",
|
|
||||||
"armv7"
|
|
||||||
],
|
|
||||||
"description": "Nextcloud for Home Assistant",
|
"description": "Nextcloud for Home Assistant",
|
||||||
"boot": "manual",
|
"boot": "manual",
|
||||||
"uart": true,
|
"uart": true,
|
||||||
"map": [
|
"map": ["share:rw", "media:rw", "ssl:rw"],
|
||||||
"share:rw",
|
|
||||||
"media:rw",
|
|
||||||
"ssl:rw"
|
|
||||||
],
|
|
||||||
"ports": {
|
"ports": {
|
||||||
"443/tcp": 8099,
|
"443/tcp": 8099,
|
||||||
"80/tcp": null
|
"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
|
apk add --no-cache tesseract-ocr || apk add --no-cache tesseract-ocr@community
|
||||||
# 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'
|
LANG=$(bashio::config 'OCRLANG')
|
||||||
apk add --no-cache tesseract-ocr-data-$(bashio::config 'OCRLANG') || apk add --no-cache tesseract-ocr-data-$(bashio::config 'OCRLANG')@community
|
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
|
fi
|
||||||
elif $(bashio::config 'OCR') = false; then
|
elif $(bashio::config 'OCR') = false; then
|
||||||
bashio::log.info 'Removing OCR'
|
bashio::log.info 'Removing OCR'
|
||||||
|
|||||||
Reference in New Issue
Block a user