From d4197ecdad8da585d5acd9f228ab3a6079c1fad8 Mon Sep 17 00:00:00 2001 From: aptalca Date: Tue, 21 Sep 2021 13:54:09 -0400 Subject: [PATCH] standardize apt-get --- root/etc/cont-init.d/95-apt-get | 3 +++ root/etc/cont-init.d/98-multilangocr | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 root/etc/cont-init.d/95-apt-get 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}"