Files
axion1337.chat-gitops/host-config/maintenance-notify/maintenance-notify.timer
T
Thore CimbalandClaude Sonnet 5 1b1fa2b719 feat: pre-update maintenance notifications via mail + matrix (Issue #24)
unattended-upgrades was already active on the host, just never documented
or closed. Adds a generic, reusable systemd timer + script that fires
before the daily update window and notifies via email and a Matrix thread
reply if any packages are actually pending - reusing the mas-cli bot
account pattern established for Draupnir.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-29 23:28:09 +02:00

16 lines
571 B
SYSTEMD

[Unit]
Description=Daily pre-update maintenance notification, fires before apt-daily-upgrade.timer's window
[Timer]
# Fixed, unrandomized time - must fire safely before the earliest possible
# start of apt-daily-upgrade.timer. Default apt-daily-upgrade.timer ships as
# OnCalendar=*-*-* 6:00 with RandomizedDelaySec=60m (actual run: 06:00-07:00).
# If your apt-daily-upgrade.timer differs (check with
# `systemctl cat apt-daily-upgrade.timer`), adjust the time below to keep a
# comfortable lead.
OnCalendar=*-*-* 05:00
Persistent=true
[Install]
WantedBy=timers.target