mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-19 07:50:43 +01:00
- Add systemd timer for daily update checks (2-6 AM window) - Create pulse-auto-update.sh script with safe rollback on failure - Add --enable-auto-updates flag to install script - Prompt users during fresh install to enable auto-updates - Respect autoUpdateEnabled flag in system.json - Only install stable releases, never RCs - Full logging to systemd journal - Tested and verified working in container
19 lines
516 B
SYSTEMD
19 lines
516 B
SYSTEMD
[Unit]
|
|
Description=Daily check for Pulse updates
|
|
Documentation=https://github.com/rcourtman/Pulse
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Timer]
|
|
# Run daily at 2 AM with a random delay up to 4 hours
|
|
# This spreads the load on GitHub and prevents all instances updating at once
|
|
OnCalendar=daily
|
|
OnCalendar=02:00
|
|
RandomizedDelaySec=4h
|
|
# Persist the last trigger time during downtime
|
|
Persistent=true
|
|
# Ensure we run if the system was off when scheduled
|
|
AccuracySec=1h
|
|
|
|
[Install]
|
|
WantedBy=timers.target |