Skip to content

Commit 5f6b9b1

Browse files
committed
Change user creation script
1 parent abdf64a commit 5f6b9b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.devcontainer/scripts/create-user.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ USERNAME=${1}
33
USER_UID=${2}
44
USER_GID=${3}
55

6+
if [ ! "$USERNAME" ];then
7+
USERNAME=vscode
8+
fi
9+
610
# Create the user
711
addgroup --gid $USER_GID $USERNAME
812
adduser --uid $USER_UID --gid $USER_GID --disabled-password $USERNAME

0 commit comments

Comments
 (0)