mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-01 04:21:56 -04:00
switch to hybrid
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -n "$OCRLANG" ]; then
|
||||
echo "**** OCRLANG variable is set, processing the language packages ****"
|
||||
for i in $(echo "$OCRLANG" | tr "," " "); do
|
||||
if apt-cache show tesseract-ocr-"${i}" > /dev/null 2>&1; then
|
||||
if ! dpkg -s tesseract-ocr-"${i}" >/dev/null 2>&1; then
|
||||
echo "**** Adding tesseract-ocr-${i} to package install list ****"
|
||||
echo "tesseract-ocr-${i}" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
echo "**** tesseract-ocr-${i} is already installed, skipping ****"
|
||||
fi
|
||||
else
|
||||
echo "**** package tesseract-ocr-${i} not found in the repository, skipping ****"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
+1
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
+1
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-papermerge-multilangocr-add-package/run
|
||||
Reference in New Issue
Block a user