fix(docker): skip unnecessary boot chown when volume ownership already matches remapped UID (#35027)

This commit is contained in:
Foldblade
2026-06-01 11:59:43 +10:00
committed by GitHub
parent 758454d1e4
commit 1031031dec

View File

@ -128,9 +128,7 @@ done
# mkdir -p block below seeds. Keep them in sync if the seed list changes.
actual_hermes_uid=$(id -u hermes)
needs_chown=false
if [ -n "${HERMES_UID:-}" ] && [ "$HERMES_UID" != "10000" ]; then
needs_chown=true
elif [ "$(stat -c %u "$HERMES_HOME" 2>/dev/null)" != "$actual_hermes_uid" ]; then
if [ "$(stat -c %u "$HERMES_HOME" 2>/dev/null)" != "$actual_hermes_uid" ]; then
needs_chown=true
fi
if [ "$needs_chown" = true ]; then