mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-20 18:22:00 -04:00
17 lines
475 B
Plaintext
Executable File
17 lines
475 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
if [ -z "$UPTIME_KUMA_URL" ] || [ -z "$UPTIME_KUMA_USERNAME" ] || [ -z "$UPTIME_KUMA_PASSWORD" ]; then
|
|
echo "[mod-auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
|
|
exit 0
|
|
fi
|
|
|
|
echo "[mod-auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod"
|
|
|
|
scriptPath='/app/auto-uptime-kuma.py'
|
|
|
|
if [ -e "$scriptPath" ] && [ ! -x "$scriptPath" ]; then
|
|
chmod +x "$scriptPath"
|
|
fi
|
|
|
|
python3 $scriptPath
|