fix: auto-fix data/history write permissions in Docker entrypoint

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-16 21:44:41 +08:00
parent 187b08c3e1
commit 37128dee61
3 changed files with 20 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
HISTORY_DIR="${HISTORY_DATA_DIR:-/app/data/history}"
mkdir -p "$HISTORY_DIR"
chown -R nextjs:nodejs "$HISTORY_DIR"
exec su-exec nextjs "$@"