Skip to Content
HostWall

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 --check
Installed: 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.1

Read the release notes before upgrading, especially while HostWall is in v0.x.

Upgrade

sudo hostwall upgrade

What happens:

  1. HostWall downloads the release archive for your platform, checksums.txt and its signature from GitHub.
  2. It verifies the Ed25519 signature on checksums.txt with the release key built into the binary, then the archive's SHA-256. If either check fails, nothing changes.
  3. It runs the new binary's version command as a sanity check.
  4. It replaces /usr/local/bin/hostwall, keeping the old binary as /usr/local/bin/hostwall.old.
  5. If the hostwall systemd 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

FlagMeaning
--checkOnly report whether a newer version is available
--version v0.1.2Install a specific version, also to go back to an older one (with --force)
--yesDon't ask for confirmation
--forceInstall even if the version isn't newer, or to replace a development build

Other install methods

Installed withUpgrade with
Install scriptsudo hostwall upgrade, or run the install script again
Dockerdocker compose pull && docker compose up -d (or pull and recreate the container)
Manual binarysudo hostwall upgrade, or replace the binary and restart
Built from sourcegit pull && make build, then replace the binary and restart
Windows, macOSDownload 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 hostwall

Or 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.

Edit this page on GitHub

On this page