nix/harness: chown /run/hive to agent user (#658 fixup)
This commit is contained in:
parent
5d1909bb5c
commit
ed046787e0
1 changed files with 12 additions and 0 deletions
|
|
@ -687,6 +687,18 @@ in
|
||||||
[ -d "$stateDir" ] || continue
|
[ -d "$stateDir" ] || continue
|
||||||
chown -hR "$userName:$userName" "$stateDir" 2>/dev/null || true
|
chown -hR "$userName:$userName" "$stateDir" 2>/dev/null || true
|
||||||
done
|
done
|
||||||
|
# Same treatment for the per-agent runtime dir bind
|
||||||
|
# (`/run/hive` ← host `/run/hyperhive/{manager,agents/<n>}`,
|
||||||
|
# set by hive-c0re's `set_nspawn_flags`). Host creates it
|
||||||
|
# root:root 0755; post-#658 the harness service runs as the
|
||||||
|
# agent user and needs RW to drop `mcp.sock` and the
|
||||||
|
# claude-{mcp-config,settings,system-prompt} files there.
|
||||||
|
# Not recursive (-h still, no -R) — the dir itself is what
|
||||||
|
# the harness writes into; contents are owned by whoever
|
||||||
|
# created them at runtime.
|
||||||
|
if [ -d /run/hive ]; then
|
||||||
|
chown -h "$userName:$userName" /run/hive 2>/dev/null || true
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Auto-inject the matrix MCP entry when matrix is enabled (#548
|
# Auto-inject the matrix MCP entry when matrix is enabled (#548
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue