From 4438d17b5b309b85fbfa34a86b03832145613a78 Mon Sep 17 00:00:00 2001 From: Glenn Van Loon Date: Mon, 13 Apr 2026 18:18:56 +0200 Subject: [PATCH] Confirm ownership of items in top level directory Checking only the mount point itself appears to be not enough. Fixes zwift install error with docker. wine: '/home/user/.wine' is not owned by you. --- src/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entrypoint.sh b/src/entrypoint.sh index f278b5ab..4cf9207f 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -142,7 +142,7 @@ if [[ ${CONTAINER_TOOL} == "docker" ]]; then # This avoids a costly recursive find on every normal startup local target="${1:?}" local result - [[ -d ${target} ]] && result="$(find "${target}" -maxdepth 0 \( ! -user user -o ! -group user \) -print 2> /dev/null)" && [[ -n ${result} ]] + [[ -d ${target} ]] && result="$(find "${target}" -maxdepth 1 \( ! -user user -o ! -group user \) -print 2> /dev/null)" && [[ -n ${result} ]] } update_ownership() {