diff --git a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh index abbefb235..6da3dce38 100644 --- a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh +++ b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh @@ -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"