mirror of https://github.com/usememos/memos
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.pull/5556/head
parent
1696c6c414
commit
d14cfa1c4f
Loading…
Reference in New Issue