scripts: add auth management and Termux widget scripts

This commit is contained in:
L36 Server
2026-01-09 09:12:19 +10:30
committed by Peter Steinberger
parent 8f21f34b1c
commit 6484195bfe
10 changed files with 708 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Clawdbot Auth Expiry Monitor
After=network.target
[Service]
Type=oneshot
ExecStart=/home/admin/clawdbot/scripts/auth-monitor.sh
# Configure notification channels via environment
Environment=WARN_HOURS=2
# Environment=NOTIFY_PHONE=+1234567890
# Environment=NOTIFY_NTFY=clawdbot-alerts
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Check Clawdbot auth expiry every 30 minutes
[Timer]
OnBootSec=5min
OnUnitActiveSec=30min
Persistent=true
[Install]
WantedBy=timers.target