Update and rename 00-OCR to 91-OCR

This commit is contained in:
Alexandre
2021-02-09 17:15:16 +01:00
committed by GitHub
parent 95124f123c
commit 3633c81f75
2 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bashio
export OCRLANG=$(bashio::config 'ocrlang')
bashio::log.info "Adding OCR language : $OCRLANG"

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
# Allow OCR setting
sed -i 's/bash/bashio/g' /etc/cont-init.d/98-multilangocr
sed -i "2i\OCRLANG=$(bashio::config "ocrlang")" /etc/cont-init.d/98-multilangocr