#!/bin/bash set -ex for goarch in amd64 arm64; do env GOARCH=${goarch} go install -v tailscale.com/cmd/derper@main for filename in ${GOPATH:-${HOME}/go}/bin/linux_${goarch}/derper ${GOPATH:-${HOME}/go}/bin/derper; do if test -f ${filename}; then mv -f ${filename} derper_linux_${goarch} fi done done sudo systemctl restart derper