diff --git a/docker/server/entrypoint.sh b/docker/server/entrypoint.sh index fae11cd267e..89dd501bf38 100755 --- a/docker/server/entrypoint.sh +++ b/docker/server/entrypoint.sh @@ -58,12 +58,12 @@ do [ -z "$dir" ] && continue # ensure directories exist if [ "$DO_CHOWN" = "1" ]; then - mkdir="mkdir" + mkdir="mkdir" else - # if DO_CHOWN=0 it means that the system does not map root user to "admin" permissions - # it mainly happens on NFS mounts where root==nobody for security reasons - # thus mkdir MUST run with user id/gid and not from nobody that has zero permissions - mkdir="/usr/bin/clickhouse su "${USER}:${GROUP}" mkdir" + # if DO_CHOWN=0 it means that the system does not map root user to "admin" permissions + # it mainly happens on NFS mounts where root==nobody for security reasons + # thus mkdir MUST run with user id/gid and not from nobody that has zero permissions + mkdir="/usr/bin/clickhouse su "${USER}:${GROUP}" mkdir" fi if ! $mkdir -p "$dir"; then echo "Couldn't create necessary directory: $dir"