Add locking, backup pruning, and systemd timer for release checks

This commit is contained in:
Aaron
2025-12-10 19:43:00 -05:00
parent 648b1c6643
commit d6f7b92fb4
3 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Pi-Kit release update check/apply helper
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/curl -s -H "Content-Type: application/json" -X POST http://127.0.0.1/api/update/check
User=root
Group=root
TimeoutStartSec=300
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Daily Pi-Kit release update check
[Timer]
OnCalendar=*-*-* 04:20:00
RandomizedDelaySec=900
Persistent=true
Unit=pikit-update.service
[Install]
WantedBy=timers.target