From 8f389d9dab0d783159e4df4727fdf8fc63ddd852 Mon Sep 17 00:00:00 2001 From: johba Date: Sat, 28 Mar 2026 11:50:57 +0000 Subject: [PATCH] fix: add USER=agent to crontab env (unbound variable in cron) env.sh references $USER which is not set in cron environment. With set -u (pipefail), this causes env.sh to exit before setting DISINTO_LOG_DIR, resulting in log writes to the read-only mount. Root cause of silent cron failures since containerized setup. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker/agents/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/agents/entrypoint.sh b/docker/agents/entrypoint.sh index ea0a85a..c5f5163 100644 --- a/docker/agents/entrypoint.sh +++ b/docker/agents/entrypoint.sh @@ -18,7 +18,8 @@ log() { # Build crontab from project TOMLs and install for the agent user. install_project_crons() { - local cron_lines="DISINTO_CONTAINER=1" + local cron_lines="DISINTO_CONTAINER=1 +USER=agent" for toml in "${DISINTO_DIR}"/projects/*.toml; do [ -f "$toml" ] || continue local pname