From 601e474e7dd294c990f898367e362ae5457e08a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Stan=C4=9Bk?= Date: Fri, 9 Jul 2021 19:41:28 +0200 Subject: [PATCH] Fix run_docker to work on Mac (#1695) [skip ci] --- run_docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_docker b/run_docker index 698c7829d..69b0fc7ea 100755 --- a/run_docker +++ b/run_docker @@ -13,11 +13,11 @@ USER_HOME="/src/.docker_home" USER_NAME="$(id -u -n)" USER_PASS="x" USER_ID="$(id -u)" -USER_GID=0 +USER_GID="$(id -g)" USER_COMMENT_FIELD="${USER_NAME} pyodide user alias" USER_INTERPRETER="/sbin/nologin" USER_ACCOUNT_INFO="${USER_NAME}:${USER_PASS}:${USER_ID}:${USER_GID}:${USER_COMMENT_FIELD}:${USER_HOME}:${USER_INTERPRETER}" -USER_FLAG="--user $(id --user):$(id --group)" +USER_FLAG="--user $USER_ID:$USER_GID" set -eo pipefail