Skip to content

Commit 3161aa9

Browse files
Allow to specify already existing gid also
Emscripten image has two non-root users and groups: emscripten (1000), me (1001). Since default user is me (1001), we need to pass host uid/gid when host uid/gid are 1000. But passing them caused: `groupmod: GID '1000' already exists` so allow duplicated gid as well.
1 parent 476e377 commit 3161aa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builders/wasm32-unknown-emscripten/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
set -e
44

55
[ ! -z "${RUBYWASM_UID+x}" ] && usermod --uid "$RUBYWASM_UID" --non-unique me
6-
[ ! -z "${RUBYWASM_GID+x}" ] && groupmod --gid "$RUBYWASM_GID" me
6+
[ ! -z "${RUBYWASM_GID+x}" ] && groupmod --gid "$RUBYWASM_GID" --non-unique me
77
exec gosu me "$@"

builders/wasm32-unknown-wasi/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
set -e
44

55
[ ! -z "${RUBYWASM_UID+x}" ] && usermod --uid "$RUBYWASM_UID" --non-unique me
6-
[ ! -z "${RUBYWASM_GID+x}" ] && groupmod --gid "$RUBYWASM_GID" me
6+
[ ! -z "${RUBYWASM_GID+x}" ] && groupmod --gid "$RUBYWASM_GID" --non-unique me
77
exec gosu me "$@"

0 commit comments

Comments
 (0)