From fb10e0ad333e657f01b796e02995e095fa6e8256 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 1 Feb 2024 11:56:37 -0800 Subject: [PATCH] Add the -o option to the groupmod command used in start-docker.sh when USER_GID is set, otherwise we won't be added to existing groups (e.g. you want node to run in the users (100) group) --- start-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-docker.sh b/start-docker.sh index 1b3b73fce..823b6eba9 100755 --- a/start-docker.sh +++ b/start-docker.sh @@ -1,7 +1,7 @@ #!/bin/sh [[ ! -z "${USER_UID}" ]] && usermod -u ${USER_UID} node || echo "No USER_UID specified, leaving 1000" -[[ ! -z "${USER_GID}" ]] && groupmod -g ${USER_GID} node || echo "No USER_GID specified, leaving 1000" +[[ ! -z "${USER_GID}" ]] && groupmod -og ${USER_GID} node || echo "No USER_GID specified, leaving 1000" chown -R node:node /home/node exec su-exec node node ./src/www