Files
docker-mods-uptime-kuma-tim…/root/etc/cont-init.d/95-apprise
T
2020-10-04 15:07:23 -05:00

24 lines
402 B
Plaintext

#!/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