fix(docker): skip unnecessary boot chown when volume ownership already matches remapped UID (#35027)
This commit is contained in:
@@ -128,9 +128,7 @@ done
|
|||||||
# mkdir -p block below seeds. Keep them in sync if the seed list changes.
|
# mkdir -p block below seeds. Keep them in sync if the seed list changes.
|
||||||
actual_hermes_uid=$(id -u hermes)
|
actual_hermes_uid=$(id -u hermes)
|
||||||
needs_chown=false
|
needs_chown=false
|
||||||
if [ -n "${HERMES_UID:-}" ] && [ "$HERMES_UID" != "10000" ]; then
|
if [ "$(stat -c %u "$HERMES_HOME" 2>/dev/null)" != "$actual_hermes_uid" ]; then
|
||||||
needs_chown=true
|
|
||||||
elif [ "$(stat -c %u "$HERMES_HOME" 2>/dev/null)" != "$actual_hermes_uid" ]; then
|
|
||||||
needs_chown=true
|
needs_chown=true
|
||||||
fi
|
fi
|
||||||
if [ "$needs_chown" = true ]; then
|
if [ "$needs_chown" = true ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user