mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-21 02:24:29 -04:00
swag:auto-uptime-kuma Initial release of the mod
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user