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) <noreply@anthropic.com>
This commit is contained in:
parent
c1939fbb9a
commit
3ce6354f4f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue