#!/bin/sh # Install the built binary and unit on this host, then (re)start the service. set -eu cd "$(dirname "$0")/.." sudo install -m 0755 bin/hamlet /usr/local/bin/hamlet sudo install -m 0644 deploy/hamlet.service /etc/systemd/system/hamlet.service sudo systemctl daemon-reload sudo systemctl enable --now hamlet.service >/dev/null sudo systemctl restart hamlet.service sleep 1 systemctl is-active hamlet.service && /usr/local/bin/hamlet version