#!/usr/bin/env bash set -euo pipefail SERVICE=brewpi UNIT_FILE="$(dirname "$(realpath "$0")")/${SERVICE}.service" TARGET=/etc/systemd/system/${SERVICE}.service sudo cp "$UNIT_FILE" "$TARGET" sudo systemctl daemon-reload sudo systemctl enable "$SERVICE" echo "Installed. Start with: sudo systemctl start $SERVICE" echo "View logs with: journalctl -u $SERVICE -f"