mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 00:45:46 -04:00
+ Apt install pacakges provided through 'APT_PACKAGES'
+Update readme
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get update
|
||||
fi
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Exit if no installable packages are provided
|
||||
if [ -z ${APT_PACKAGES+x} ]; then
|
||||
echo "**** No APT packages to install ****"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt install -y --no-install-recommends ${APT_PACKAGES}
|
||||
else
|
||||
echo "!!! apt not found !!!"
|
||||
fi
|
||||
Reference in New Issue
Block a user