mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
21 lines
679 B
Plaintext
Executable File
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
|