Agent Zero AI framework
Ensure uploads directory exists on container startup
Alessandro684e0b414d3f
diff --git a/docker/run/AGENTS.md b/docker/run/AGENTS.mdindex f2bacfdf2..71b21a75c 100644--- a/docker/run/AGENTS.md+++ b/docker/run/AGENTS.md@@ -20,6 +20,7 @@- Preserve exposed ports for SSH, HTTP, and tunneled services unless docs and workflows are updated together.- Keep the two-runtime Python model aligned with the root contract.- Do not bake secrets, local `.env` values, or user data into the image.+- Runtime startup must ensure `/a0/usr/uploads` exists before supervised services start.## Work Guidancediff --git a/docker/run/fs/exe/initialize.sh b/docker/run/fs/exe/initialize.shindex 8c329bb30..5335b8709 100644--- a/docker/run/fs/exe/initialize.sh+++ b/docker/run/fs/exe/initialize.sh@@ -12,6 +12,9 @@ BRANCH="$1"# Copy all contents from persistent /per to root directory (/) without overwritingcp -r --no-preserve=ownership,mode /per/* /+# Ensure upload storage exists before API and connector callers can reference it.+mkdir -p /a0/usr/uploads+# allow execution of /root/.bashrc and /root/.profilechmod 444 /root/.bashrcchmod 444 /root/.profile