mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-21 02:24:29 -04:00
universal-package-install update/add workflows
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get update
|
||||
fi
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/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
|
||||
|
||||
|
||||
#Split list of packages on delimiter '|'
|
||||
IFS='|'
|
||||
INSTALL_PACKAGES=(${INSTALL_PACKAGES})
|
||||
for PKG in "${INSTALL_PACKAGES[@]}"; do
|
||||
echo "Installing ${PKG}"
|
||||
|
||||
# Ubuntu
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
DEBIAN_FRONTEND="noninteractive"
|
||||
apt-get install -y --no-install-recommends ${PKG}
|
||||
fi
|
||||
|
||||
# Alpine
|
||||
if [ -f /sbin/apk ]; then
|
||||
apk add --no-cache ${PKG}
|
||||
fi
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user