swag:auto-uptime-kuma Initial release of the mod

This commit is contained in:
Pawel Derehajlo
2023-08-05 20:49:23 +02:00
parent cc80a43d42
commit dbbeba055f
30 changed files with 402 additions and 95 deletions
@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bash
if [ -z "$UPTIME_KUMA_URL" ] || [ -z "$UPTIME_KUMA_USERNAME" ] || [ -z "$UPTIME_KUMA_PASSWORD" ]; then
echo "[mod-swag-auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
exit 0
fi
echo "[mod-swag-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
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-swag-auto-uptime-kuma-install/run