mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
When do_chown is false (running as uid 101, non-root), createDirectoryAndChown was delegating to 'clickhouse su UID:GID mkdir -p DIR'. The distroless image has no mkdir binary, so this always failed, silently leaving coordination subdirectories and server runtime paths uncreated. Since we are already running as the target user, fs::create_directories works directly — no user-switch or external binary is needed. The NFS root-squash concern that motivated the clickhouse-su-mkdir approach does not apply when the process is already non-root.