Pulse/internal/agentupdate
rcourtman 7e4d4e07bf Persist QNAP agent updates to data volume (Fixes #1420)
On QNAP, /usr/local/bin is a tiny RAM disk that gets wiped on every
reboot. The install wrapper stores the real binary under
${QNAP_VOL}/.pulse-agent/<name> and a boot script copies it back into
/usr/local/bin. Without refreshing the stored copy, auto-updates applied
to the RAM disk were silently reverted on the next reboot.

Mirror the Unraid persistence pattern: after the atomic in-place swap,
when running on QNAP, rewrite the stored binary via a temp-file rename.
Skip when the running binary already is the persistent copy (fallback
mode, where the rename step already updated it).
2026-04-17 11:44:17 +01:00
..
coverage_test.go Persist QNAP agent updates to data volume (Fixes #1420) 2026-04-17 11:44:17 +01:00
restart_unix.go Improve internal package test coverage 2025-12-29 17:25:21 +00:00
restart_windows.go Fix Windows agent self-update restart failure 2025-11-30 12:02:43 +00:00
update.go Persist QNAP agent updates to data volume (Fixes #1420) 2026-04-17 11:44:17 +01:00
update_http_test.go test: expand cmd and agent update coverage 2025-12-17 13:28:17 +00:00
update_test.go Add unit tests for agentupdate utility functions 2025-11-30 03:48:50 +00:00