diff --git a/packaging/freebsd/agent-jail-bootstrap.sh b/packaging/freebsd/agent-jail-bootstrap.sh index 3bebd1e..fc66f17 100755 --- a/packaging/freebsd/agent-jail-bootstrap.sh +++ b/packaging/freebsd/agent-jail-bootstrap.sh @@ -83,4 +83,10 @@ if [ ! -e "${NPM_PREFIX}/bin/pi" ]; then fi cp -a "${NPM_PREFIX}/bin/pi" "${JAIL_ROOT}${NPM_PREFIX}/bin/pi" +# Add npm-global bin to clawdie's PATH so pi/bw are found on login +if ! grep -q 'npm-global/bin' "${JAIL_ROOT}/home/clawdie/.profile" 2>/dev/null; then + echo 'PATH="/home/clawdie/.npm-global/bin:$PATH"' >> "${JAIL_ROOT}/home/clawdie/.profile" + echo 'export PATH' >> "${JAIL_ROOT}/home/clawdie/.profile" +fi + echo "Done — ${JAIL_NAME} ready for vault provision."