Files
2024-07-11 13:44:43 +01:00

21 lines
679 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# This is the init file used for adding os or pip packages to install lists.
# It takes advantage of the built-in init-mods-package-install init script that comes with the baseimages.
# If using this, we need to make sure we set this init as a dependency of init-mods-package-install so this one runs first
if ! command -v redis; then
## Ubuntu
if [ -f /usr/bin/apt ]; then
echo "\
redis" >> /mod-repo-packages-to-install.list
fi
# Alpine
if [ -f /sbin/apk ]; then
echo "\
redis" >> /mod-repo-packages-to-install.list
fi
else
echo "**** redis already installed, skipping ****"
fi