fix(bootstrap): chown jail /home/clawdie so daemon can write staging files
#136 moved staging from /var/run/colibri-stage to /home/clawdie/.cache/colibri/stage. Bastille creates the jail's /home/clawdie as root:wheel, so the daemon (running as clawdie) couldn't create staging directories there. chown after binary copy ensures the daemon owns its home directory inside the jail.
This commit is contained in:
parent
3ba60b11dd
commit
aa754ce11f
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue