Upgrading
Upgrade HostWall with signed releases and automatic rollback, for every install method.
HostWall can upgrade itself. Every release is signed, and a failed upgrade is rolled back automatically.
Check for a new version
sudo hostwall upgrade --checkInstalled: v0.1.0
Available: v0.1.1
A new version is available: run `sudo hostwall upgrade`. Notes: https://github.com/hostwall/hostwall/releases/tag/v0.1.1Read the release notes before upgrading, especially while HostWall is in v0.x.
Upgrade
sudo hostwall upgradeWhat happens:
- HostWall downloads the release archive for your platform,
checksums.txtand its signature from GitHub. - It verifies the Ed25519 signature on
checksums.txtwith the release key built into the binary, then the archive's SHA-256. If either check fails, nothing changes. - It runs the new binary's
versioncommand as a sanity check. - It replaces
/usr/local/bin/hostwall, keeping the old binary as/usr/local/bin/hostwall.old. - If the
hostwallsystemd service is running, it restarts it and waits up to 45 seconds for the new version to report in. If the new version doesn't come up healthy, HostWall puts the old binary back and restarts the service again.
If HostWall doesn't run as a systemd service, step 5 is skipped and you'll see Restart hostwall to start using the new version.
Your config, data and certificates aren't touched.
Options
| Flag | Meaning |
|---|---|
--check | Only report whether a newer version is available |
--version v0.1.2 | Install a specific version, also to go back to an older one (with --force) |
--yes | Don't ask for confirmation |
--force | Install even if the version isn't newer, or to replace a development build |
Other install methods
| Installed with | Upgrade with |
|---|---|
| Install script | sudo hostwall upgrade, or run the install script again |
| Docker | docker compose pull && docker compose up -d (or pull and recreate the container) |
| Manual binary | sudo hostwall upgrade, or replace the binary and restart |
| Built from source | git pull && make build, then replace the binary and restart |
| Windows, macOS | Download the new archive and replace the binary |
Running the install script again replaces the binary and the systemd unit file, and restarts the service. Keep local changes to the unit in a drop-in (sudo systemctl edit hostwall).
Roll back by hand
If something is wrong after an upgrade that passed the health check:
sudo mv /usr/local/bin/hostwall.old /usr/local/bin/hostwall
sudo systemctl restart hostwallOr install a specific older version: sudo hostwall upgrade --version v0.1.0 --force.
Verify a release yourself
See Manual binary install for checking the signature with the release public key, or with gh attestation verify.