diff --git a/packaging/freebsd/agent-jail-bootstrap.sh b/packaging/freebsd/agent-jail-bootstrap.sh index a87e3a1..f8f4fe8 100755 --- a/packaging/freebsd/agent-jail-bootstrap.sh +++ b/packaging/freebsd/agent-jail-bootstrap.sh @@ -67,6 +67,10 @@ for bin in colibri colibri-daemon colibri-probe colibri-mcp colibri-test-agent c chmod 755 "${JAIL_ROOT}/usr/local/bin/${bin}" done +# Ensure the daemon can write staging files under the jail's home directory +# (bastille creates /home/clawdie as root:wheel; the daemon runs as clawdie). +chown -R clawdie:clawdie "${JAIL_ROOT}/home/clawdie" + # Copy npm global agents from the host (jails have no internet). NPM_PREFIX="/home/clawdie/.npm-global" mkdir -p "${JAIL_ROOT}${NPM_PREFIX}/bin" "${JAIL_ROOT}${NPM_PREFIX}/lib/node_modules"