Skip to main content

Module self_update

Module self_update 

Source
Expand description

Keeps a self-hosted relay current without anyone logging into the box: a relay left behind eventually refuses its own clients on PROTOCOL_VERSION.

Off unless asked, since the same binary runs production. Trust is the minisign signature CI produces; a download that does not verify is discarded.

Structs§

UpdateConfig

Functions§

is_behind
Semver-ish, on the same shape self-hosted-node compares: a published version that sorts above this one means this one is behind.
run
Replaces this binary when a newer one is published, then exits so the service manager starts it again.