Install script
Install HostWall on Linux with one command: what the install script does, its environment variables, upgrading and uninstalling.
curl -fsSL https://www.hostwall.io/install | shRun it as a normal user with sudo, or as root. You can read the script first: it is scripts/install.sh in this repository.
What it does
- Detects your OS (
linuxordarwin) and CPU (amd64orarm64). - Finds the latest release on GitHub (or uses
HOSTWALL_VERSION). - Downloads
hostwall_<version>_<os>_<arch>.tar.gzandchecksums.txtfrom the GitHub release (or fromHOSTWALL_BASE_URL), and checks the archive's SHA-256 checksum. It stops if the checksum doesn't match. - Installs the binary to
/usr/local/bin/hostwall.
Then, on Linux with systemd only (and unless HOSTWALL_NO_SERVICE=1):
- Creates a
hostwallsystem user with no login shell. - Creates
/etc/hostwalland/var/lib/hostwall(owned byhostwall, mode0700). - Writes a minimal
/etc/hostwall/hostwall.yamlif none exists. An existing file is never touched. - Installs the systemd unit from the release archive to
/etc/systemd/system/hostwall.service, then enables and starts the service (or restarts it if it was already running). - Waits for HostWall to create the dashboard user admin, then prints the SSH tunnel command and the initial password.
On macOS, or on Linux without systemd, the script stops after step 4 and tells you to start HostWall with sudo hostwall run.
Note
The script checks the SHA-256 checksum from the release. It does not check the release signature. To verify the signature yourself, use the manual install. hostwall upgrade always checks the signature.
Environment variables
| Variable | Example | Effect |
|---|---|---|
HOSTWALL_VERSION | v0.1.0 | Install this version instead of the latest |
HOSTWALL_NO_SERVICE | 1 | Only install the binary; don't create the user, directories or service |
HOSTWALL_BASE_URL | https://mirror.example.com/hostwall/v0.1.0 | Download the archive and checksums.txt from this URL instead of GitHub (mirrors, CI). Requires HOSTWALL_VERSION. |
Pass them to sh, not to curl:
curl -fsSL https://www.hostwall.io/install | HOSTWALL_VERSION=v0.1.0 sh
curl -fsSL https://www.hostwall.io/install | HOSTWALL_NO_SERVICE=1 shUpgrading
The easiest way is the built-in upgrade command:
sudo hostwall upgradeIt downloads the latest release, verifies its signature and checksum, replaces the binary (keeping the old one as hostwall.old), restarts the service, and rolls back to the previous binary if the new version doesn't come up healthy within 45 seconds. Use sudo hostwall upgrade --check to only check for a new version. See the CLI reference.
Re-running the install script also upgrades: it replaces the binary and restarts the service. It keeps your config and data, but it does overwrite /etc/systemd/system/hostwall.service with the unit file from the release. Put local changes to the unit in a drop-in (sudo systemctl edit hostwall) so they survive.
Uninstall
Take a backup first if you might want your data back (sudo hostwall backup --out /tmp/hostwall-backup.tar.gz). Then:
sudo systemctl disable --now hostwall
sudo rm /etc/systemd/system/hostwall.service
sudo systemctl daemon-reload
sudo rm /usr/local/bin/hostwall
sudo rm -rf /etc/hostwall /var/lib/hostwall # config, database and certificates
sudo userdel hostwall