mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
papermerge-multilangocr initial release
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -n "$OCRLANG" ]; then
|
||||
echo "OCRLANG variable is set, processing the language packages"
|
||||
apt-get update
|
||||
for i in $(echo "$OCRLANG" | tr "," " "); do
|
||||
if apt-cache show tesseract-ocr-"${i}" > /dev/null 2>&1; then
|
||||
echo "installing tesseract-ocr-${i}"
|
||||
apt-get install -y tesseract-ocr-"${i}"
|
||||
else
|
||||
echo "package tesseract-ocr-${i} not found in the repository, skipping"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user