diff --git a/root/etc/cont-init.d/95-apt-get b/root/etc/cont-init.d/95-apt-get new file mode 100644 index 0000000..5b1a21c --- /dev/null +++ b/root/etc/cont-init.d/95-apt-get @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bash + +apt-get update diff --git a/root/etc/cont-init.d/98-multilangocr b/root/etc/cont-init.d/98-multilangocr index 6f28477..7ad2315 100644 --- a/root/etc/cont-init.d/98-multilangocr +++ b/root/etc/cont-init.d/98-multilangocr @@ -2,7 +2,6 @@ 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}"