#!/bin/bash cargo build --release --all-features echo "stopping service" systemctl --user stop mumble-stats echo "replacing binary" mv ./target/release/mumble-stats-api /opt/bin/mumble-stats-api echo "restarting service" systemctl --user start mumble-stats