fix: agent-enrollment.md doc references to use /mcp path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user