fix: agents entrypoint crashes — pname unbound variable in cron setup #171
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#171
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The agents container crashes in a loop on startup with:
Root cause
In
docker/agents/entrypoint.sh, theinstall_project_crons()function references${pname}in the cron header string (line 24) before the variable is assigned inside theforloop (line 28).With
set -euo pipefail, the unbound${pname}reference causes an immediate crash, making the container restart-loop.Fix
Move the
PROJECT_REPO_ROOTline from the cron header into the per-project block inside the loop, afterpnameis assigned:Files
docker/agents/entrypoint.sh—install_project_crons()function, line 24