feat(daemon): auto-apply upgrades when server signals (0.9.6)
OnUpgrade now downloads + replaces the binary and exits in a background goroutine; the service supervisor (systemd Restart=always) respawns on the new version. Removes the "run unarr update" manual step after pressing the web's Force update button.
This commit is contained in:
parent
88316e7017
commit
834c58c25a
3 changed files with 50 additions and 4 deletions
17
CHANGELOG.md
17
CHANGELOG.md
|
|
@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.9.6] - 2026-05-26
|
||||
|
||||
### Added
|
||||
|
||||
- **auto-upgrade**: when the web flags the agent for upgrade
|
||||
(`POST /api/internal/agent/upgrade` or the "Force update now" button),
|
||||
the daemon now downloads and replaces the binary in-place, then exits so
|
||||
the service supervisor (`systemd Restart=always` on Linux, the equivalent
|
||||
on macOS/Windows) respawns on the new version. No `unarr update` step
|
||||
required from the user. Still opt-in — only fires when the server sends
|
||||
the upgrade signal.
|
||||
|
||||
### Changed
|
||||
|
||||
- The `OnUpgrade` daemon callback no longer just logs `run unarr self-update`;
|
||||
it now triggers the actual upgrade in a background goroutine.
|
||||
|
||||
## [0.9.5] - 2026-05-26
|
||||
|
||||
### Added
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue