fix: bug: agents-llama entrypoint writes to dev-poll log path before creating parent directory (#533)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-10 07:07:24 +00:00
parent bba7585ce1
commit a0280aa454

View file

@ -18,8 +18,8 @@ set -euo pipefail
DISINTO_DIR="/home/agent/disinto" DISINTO_DIR="/home/agent/disinto"
LOGFILE="/home/agent/data/agent-entrypoint.log" LOGFILE="/home/agent/data/agent-entrypoint.log"
mkdir -p /home/agent/data mkdir -p /home/agent/data/logs
chown agent:agent /home/agent/data chown -R agent:agent /home/agent/data
log() { log() {
printf '[%s] %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S UTC')" "$*" | tee -a "$LOGFILE" printf '[%s] %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S UTC')" "$*" | tee -a "$LOGFILE"