Fix addgroup command
This commit is contained in:
parent
ebafd7bc39
commit
a39ed9f6ef
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ if ! id "$DOCKER_USER" >/dev/null 2>&1; then
|
||||||
GROUP_ID=${PGID:-9001}
|
GROUP_ID=${PGID:-9001}
|
||||||
echo "Starting with $USER_ID:$GROUP_ID (UID:GID)"
|
echo "Starting with $USER_ID:$GROUP_ID (UID:GID)"
|
||||||
|
|
||||||
addgroup -g $GROUP_ID $DOCKER_GROUP
|
addgroup --gid $GROUP_ID $DOCKER_GROUP
|
||||||
adduser -s /bin/sh -u $USER_ID -G $DOCKER_GROUP -D $DOCKER_USER
|
adduser -s /bin/sh -u $USER_ID -G $DOCKER_GROUP -D $DOCKER_USER
|
||||||
|
|
||||||
chown -vR $USER_ID:$GROUP_ID /opt/minecraft
|
chown -vR $USER_ID:$GROUP_ID /opt/minecraft
|
||||||
|
|
Loading…
Add table
Reference in a new issue