diff --git a/docker/docker-init.sh b/docker/docker-init.sh index a80f34131..4cda79698 100644 --- a/docker/docker-init.sh +++ b/docker/docker-init.sh @@ -76,6 +76,10 @@ if ! id -u "$USER" &> /dev/null; then useradd -s /bin/bash --groups staff,sudo --uid $UID --gid $GID $USER echo "$USER:$USER" | chpasswd fi +if ! grep -q ":$GID:$" /etc/group ; then + echo "Creating group entry for GID '$GID' ..." + groupadd -g $GID users +fi VIRTDIR="/opt/home/$USER/$TAG" echo "Checking that there's a virtual environment for $TAG ..."