From 74b34550bc9a98718072e1774af0acb0bb1cec6a Mon Sep 17 00:00:00 2001 From: William Gill Date: Fri, 12 Jun 2026 15:52:35 -0500 Subject: [PATCH] feat(headscale): install host `headscale` CLI wrapper Add /usr/local/bin/headscale (generated by deploy.sh) that runs the headscale CLI inside the container with the compose file path baked in, so `headscale users list` etc. work from any directory instead of erroring with "no configuration file provided". Update the post-deploy hints accordingly. --- deployments/headscale/deploy.sh | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/deployments/headscale/deploy.sh b/deployments/headscale/deploy.sh index 437b5f1..f8736a3 100644 --- a/deployments/headscale/deploy.sh +++ b/deployments/headscale/deploy.sh @@ -274,6 +274,17 @@ while (( $(date +%s) < deadline )); do sleep 5 done +# Convenience: a `headscale` command on the host that runs the CLI inside the +# container from ANY directory (plain `docker compose` needs to be run from +# $STACK_DIR). STACK_DIR is baked in; "$@" is passed through. +cat > /usr/local/bin/headscale <