mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
fix: add OpenCode cache volume for version file persistence
OpenCode stores a version file in ~/.cache/opencode/ which was causing EACCES permission errors. This adds: - Volume mount for ~/.cache/opencode - Entrypoint script to set correct ownership/permissions on the cache directory
This commit is contained in:
@@ -40,6 +40,13 @@ fi
|
||||
chown -R automaker:automaker /home/automaker/.config/opencode
|
||||
chmod -R 700 /home/automaker/.config/opencode
|
||||
|
||||
# OpenCode also uses ~/.cache/opencode for cache data (version file, etc.)
|
||||
if [ ! -d "/home/automaker/.cache/opencode" ]; then
|
||||
mkdir -p /home/automaker/.cache/opencode
|
||||
fi
|
||||
chown -R automaker:automaker /home/automaker/.cache/opencode
|
||||
chmod -R 700 /home/automaker/.cache/opencode
|
||||
|
||||
# If CURSOR_AUTH_TOKEN is set, write it to the cursor auth file
|
||||
# On Linux, cursor-agent uses ~/.config/cursor/auth.json for file-based credential storage
|
||||
# The env var CURSOR_AUTH_TOKEN is also checked directly by cursor-agent
|
||||
|
||||
Reference in New Issue
Block a user