Fix colibri CLI for clawdie user #26

Merged
clawdie merged 1 commit from fix/colibri-cli-clawdie-access into main 2026-06-04 19:34:36 +02:00
2 changed files with 7 additions and 1 deletions

View file

@ -1257,6 +1257,10 @@ else
fi
_clawdie_path_has "${_clawdie_npm_prefix}/bin" || PATH="${_clawdie_npm_prefix}/bin:${PATH}"
export PATH
# Colibri daemon socket — needed for 'colibri' CLI without --socket
export COLIBRI_DAEMON_SOCKET="/var/run/colibri/colibri.sock"
unset _clawdie_npm_prefix
unset _clawdie_base_path
unset -f _clawdie_path_has 2>/dev/null || true

View file

@ -100,7 +100,9 @@ sed -i '' 's/ -u \${colibri_daemon_user} //' \
# owned by the target user, which blocks non-root users (clawdie) from
# running 'service colibri_daemon status'. Chmod in poststart.
sed -i '' '/socket ready/a\
chmod 644 "${pidfile}" 2>/dev/null || true' \
chmod 644 "${pidfile}" 2>/dev/null || true
a\
chmod 660 "${colibri_daemon_socket}" 2>/dev/null || true' \
"${RC_DIR}/colibri_daemon"
# Add DeepSeek API key and cache warming to daemon environment.