Add universal apprise

This commit is contained in:
Eric Nemchik
2020-10-04 15:07:23 -05:00
parent 69f8a2efb7
commit 8b32199a67
7 changed files with 32 additions and 70 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/with-contenv bash
# Determine if setup is needed
if ! command -v apprise; then
## Ubuntu
if [ -f /usr/bin/apt ]; then
apt-get update
apt-get install --no-install-recommends -y \
python3
fi
# Alpine
if [ -f /sbin/apk ]; then
apk add --no-cache \
python3
fi
# ensurepip
python3 -m ensurepip --upgrade
# apprise
python3 -m pip install apprise
fi