fix: agent-enrollment.md doc references to use /mcp path

This commit is contained in:
2026-06-02 00:28:43 +02:00
parent ec48041b54
commit 520a86c986
2 changed files with 4 additions and 3 deletions

View File

@@ -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