fix(bootstrap): chown jail /home/clawdie so daemon can write staging files #150

Merged
clawdie merged 1 commit from fix/jail-home-chown into main 2026-06-23 08:13:31 +02:00
Showing only changes of commit aa754ce11f - Show all commits

View file

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