mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
standardize apt-get
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
apt-get update
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
if [ -n "$OCRLANG" ]; then
|
if [ -n "$OCRLANG" ]; then
|
||||||
echo "OCRLANG variable is set, processing the language packages"
|
echo "OCRLANG variable is set, processing the language packages"
|
||||||
apt-get update
|
|
||||||
for i in $(echo "$OCRLANG" | tr "," " "); do
|
for i in $(echo "$OCRLANG" | tr "," " "); do
|
||||||
if apt-cache show tesseract-ocr-"${i}" > /dev/null 2>&1; then
|
if apt-cache show tesseract-ocr-"${i}" > /dev/null 2>&1; then
|
||||||
echo "installing tesseract-ocr-${i}"
|
echo "installing tesseract-ocr-${i}"
|
||||||
|
|||||||
Reference in New Issue
Block a user