Merge pull request #472 from linuxserver/universal-apprise-s6v3

switch to hybrid (universal apprise)
This commit is contained in:
aptalca
2022-08-29 12:50:16 -04:00
committed by GitHub
6 changed files with 28 additions and 0 deletions
@@ -0,0 +1,26 @@
#!/usr/bin/with-contenv bash
if ! command -v apprise; then
echo "**** Adding apprise and its deps to package install lists ****"
echo "apprise" >> /mod-pip-packages-to-install.list
## Ubuntu
if [ -f /usr/bin/apt ]; then
echo "\
python3 \
python3-pip \
runc" >> /mod-repo-packages-to-install.list
fi
# Alpine
if [ -f /sbin/apk ]; then
echo "\
cargo \
libffi-dev \
openssl-dev \
python3 \
python3-dev \
python3 \
py3-pip" >> /mod-repo-packages-to-install.list
fi
else
echo "**** apprise already installed, skipping ****"
fi
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-universal-apprise-add-package/run