From 3ce6354f4fc0efca103b4723350c72365d0b6c63 Mon Sep 17 00:00:00 2001 From: johba Date: Sat, 28 Mar 2026 16:30:43 +0000 Subject: [PATCH] fix: add FORGE_URL and PROJECT_REPO_ROOT to crontab env template Cron does not inherit compose env vars. Without these, dev-poll fails with cd: /home/johba/disinto: No such file or directory (host path instead of container path). Co-Authored-By: Claude Opus 4.6 (1M context) --- docker/agents/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/agents/entrypoint.sh b/docker/agents/entrypoint.sh index c5f5163..c40b551 100644 --- a/docker/agents/entrypoint.sh +++ b/docker/agents/entrypoint.sh @@ -19,7 +19,9 @@ log() { # Build crontab from project TOMLs and install for the agent user. install_project_crons() { local cron_lines="DISINTO_CONTAINER=1 -USER=agent" +USER=agent +FORGE_URL=http://forgejo:3000 +PROJECT_REPO_ROOT=/home/agent/repos/${pname}" for toml in "${DISINTO_DIR}"/projects/*.toml; do [ -f "$toml" ] || continue local pname