memos/scripts
Johnny d14cfa1c4f fix: auto-fix permission issues when upgrading from 0.25.3 to 0.26.0
Fixes #5551

The Docker image now runs as non-root (UID 10001) for security, but this
breaks upgrades from 0.25.3 where data files were owned by root.

Changes:
- Dockerfile: Keep USER as root, install su-exec
- entrypoint.sh: Fix ownership of /var/opt/memos, then drop to non-root
- Supports custom MEMOS_UID/MEMOS_GID env vars for flexibility

This allows seamless upgrades without manual chown on the host.
2026-02-01 08:37:06 +08:00
..
Dockerfile fix: auto-fix permission issues when upgrading from 0.25.3 to 0.26.0 2026-02-01 08:37:06 +08:00
build.sh fix: update demo mode handling 2026-01-21 07:36:30 +08:00
compose.yaml fix: use stable memos image tag (#5482) 2026-01-14 23:56:27 +08:00
entrypoint.sh fix: auto-fix permission issues when upgrading from 0.25.3 to 0.26.0 2026-02-01 08:37:06 +08:00
entrypoint_test.sh fix(scripts): add file existence check in file_env (#5424) 2026-01-04 19:18:48 +08:00