Initial release

This commit is contained in:
thespad
2024-07-11 13:44:43 +01:00
parent 9d6b690c28
commit cfdf44f92a
23 changed files with 32 additions and 106 deletions
@@ -0,0 +1,20 @@
#!/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
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-universal-redis-add-package/run