mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-13 07:01:23 -04:00
24 lines
402 B
Plaintext
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
|