We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4b9618 commit 873494bCopy full SHA for 873494b
1 file changed
docker/docker-init.sh
@@ -71,15 +71,15 @@ if [ ! -d $MYSQLDIR/ietf_utf8 ]; then
71
fi
72
73
74
+if ! grep -q ":$GID:$" /etc/group ; then
75
+ echo "Creating group entry for GID '$GID' ..."
76
+ groupadd -g "$GID" "$USER"
77
+fi
78
if ! id -u "$USER" &> /dev/null; then
79
echo "Creating user '$USER' ..."
80
useradd -s /bin/bash --groups staff,sudo --uid $UID --gid $GID $USER
81
echo "$USER:$USER" | chpasswd
82
-if ! grep -q ":$GID:$" /etc/group ; then
- echo "Creating group entry for GID '$GID' ..."
- groupadd -g $GID users
-fi
83
84
VIRTDIR="/opt/home/$USER/$TAG"
85
echo "Checking that there's a virtual environment for $TAG ..."
0 commit comments