From 520a86c986f25dcf6563fc33b7ab306646d86938 Mon Sep 17 00:00:00 2001 From: dtoro Date: Tue, 2 Jun 2026 00:28:43 +0200 Subject: [PATCH] fix: agent-enrollment.md doc references to use /mcp path --- operations/agent-enrollment.md | 4 ++-- tools/post-pull.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/operations/agent-enrollment.md b/operations/agent-enrollment.md index d48a2a3..a615c00 100644 --- a/operations/agent-enrollment.md +++ b/operations/agent-enrollment.md @@ -20,7 +20,7 @@ operational reference is here. | OS is Linux or macOS | bootstrap detects via `uname -s` | `uname -s` | | On the mesh (Netbird or Tailscale) **or** on the LAN | issuance is gated to mesh + LAN subnets. **For Netbird: use a setup-key, not interactive auth** — see "Getting onto Netbird" below. | `netbird status` / `tailscale status` | | `git`, `python3`, `python3-yaml`, `age`, `sops` | bootstrap preflight; `homelab` CLI imports yaml | See per-OS commands below | -| Can resolve `*.hubris.network` | bootstrap calls `https://secrets.hubris.network/issue` and writes `https://mcp.hubris.network` | `dig +short mcp.hubris.network` (should return `192.168.8.175`) | +| Can resolve `*.hubris.network` | bootstrap calls `https://secrets.hubris.network/issue` and writes `https://mcp.hubris.network/mcp` | `dig +short mcp.hubris.network` (should return `192.168.8.175`) | ### Hostname mismatch is the most common bootstrap failure @@ -83,7 +83,7 @@ If DNS isn't an option at all, override the URLs at bootstrap time: sudo HOMELAB_GITEA_TOKEN=... \ HOMELAB_REPO_URL=http://192.168.8.121:3000/dtoro/Homelab-Docs.git \ HOMELAB_ISSUANCE_NETBIRD=http://192.168.8.205:9820/issue \ - HOMELAB_MCP_URL=http://192.168.8.205:9810 \\ + HOMELAB_MCP_URL=http://192.168.8.205:9810/mcp \ bash /tmp/bootstrap.sh --with-mcp ``` diff --git a/tools/post-pull.sh b/tools/post-pull.sh index 8eaccc5..e913557 100644 --- a/tools/post-pull.sh +++ b/tools/post-pull.sh @@ -12,7 +12,8 @@ CONTEXT_DIR="${HOMELAB_CONTEXT_DIR:-/opt/homelab-context}" # Git safe.directory workaround: the repo is owned by the regular user # but launchd runs as root. Run git as the repo owner. -REPO_OWNER=$(stat -f "%Su" "$CONTEXT_DIR" 2>/dev/null || echo "root") +REPO_OWNER=$(stat -f "%Su" "$(readlink -f "$CONTEXT_DIR")" 2>/dev/null || \ + stat -f "%Su" "/Users/dtoro/Homelab-Docs" 2>/dev/null || echo "root") # 1. Git pull (as repo owner to avoid safe.directory issues) if [ "$REPO_OWNER" != "root" ] && command -v sudo &>/dev/null; then