Files
docker-mods-uptime-kuma-tim…/root/etc/cont-init.d/97-install-packages
T
RoboMagus 265134f677 Fix BuildImage names
Add compatibility for Alpine Images.
2022-02-16 21:10:03 +01:00

17 lines
359 B
Plaintext

#!/usr/bin/with-contenv bash
# Exit if no installable packages are provided
if [ -z ${INSTALL_PACKAGES+x} ]; then
echo "**** No packages to install ****"
exit 0
fi
# Ubuntu
if [ -f /usr/bin/apt ]; then
apt install -y --no-install-recommends ${INSTALL_PACKAGES}
fi
# Alpine
if [ -f /sbin/apk ]; then
apk add --no-cache ${INSTALL_PACKAGES}
fi