Correct previous configs

This commit is contained in:
Alexandre
2022-03-22 19:53:30 +01:00
committed by GitHub
parent 2257bdf20f
commit 1b882dbe0c

View File

@@ -11,6 +11,9 @@ if [ ! -d "$CONFIGLOCATION" ]; then
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
fi
#Correct previous bug
sed -i "s|OCRLANG|OCR_LANGUAGES|g" "$CONFIGLOCATION"/papermerge.conf.py
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)
languageCount=$((languageCount+1))
bashio::log.info "Configuring ${languageCount} languages"