memos/scripts
boojack 3a55edd917 fix(scripts): prevent entrypoint restart loop when MEMOS_UID=0
The root-drop guard only checked `id -u = 0`, so when the target user was
also root (MEMOS_UID=0, common under rootless Docker with userns-remap)
su-exec re-execed back into root, re-entered the block, and looped forever
without ever reaching the memos binary — the container hung with no logs.

Add a MEMOS_ENTRYPOINT_SWITCHED marker (preserved across the su-exec
re-exec) so the privilege drop runs at most once, and log the resolved
UID:GID on startup so this path is never silent again.

Closes #6061
2026-07-03 22:02:53 +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
Dockerfile chore: update backend and frontend dependencies (#5900) 2026-04-28 08:25:26 +08:00
entrypoint.sh fix(scripts): prevent entrypoint restart loop when MEMOS_UID=0 2026-07-03 22:02:53 +08:00
entrypoint_test.sh fix(scripts): add file existence check in file_env (#5424) 2026-01-04 19:18:48 +08:00
install.sh fix: improve installer compatibility and docs 2026-03-17 20:46:18 +08:00