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>
This commit is contained in:
Thore Cimbal
2026-07-29 23:28:09 +02:00
co-authored by Claude Sonnet 5
parent 194d47a0ef
commit 1b1fa2b719
7 changed files with 331 additions and 1 deletions
@@ -0,0 +1,8 @@
[Unit]
Description=Pre-update maintenance notification (Mail + Matrix)
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/maintenance-notify.sh