Something went wrong. Try again.
Something went wrong. Try again.
434 B · 9 lines
Shell
at main
12345678910#!/usr/bin/env bash# Redeploy the zds binary after a rebuild.set -euo pipefailcd "$(dirname "$0")/.."PI=${PI:-pi}[ -f build/zds ] || { echo "run scripts/build.sh first"; exit 1; }scp -q build/zds "$PI":/home/chad/zds.newssh -t "$PI" 'sudo bash -c "mv /home/chad/zds.new /home/chad/zds && systemctl restart zds && sleep 5 && systemctl is-active zds"'curl -sf -m 20 https://pi.chadtmiller.com/xrpc/_health && echo " <- healthy"