mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
17 lines
415 B
Plaintext
Executable File
17 lines
415 B
Plaintext
Executable File
#!/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 "**** Adding ${PKG} to install list ****"
|
|
echo "${PKG}" >> /mod-repo-packages-to-install.list
|
|
done
|