Skip to content

Commit 880d2b6

Browse files
author
Carlos Brandt
committed
Fix 'useradd' when user is already (e.g, ubuntu)
The fix assume 'useradd' fails only in this case.
1 parent 7bcfdcd commit 880d2b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function config_user()
4242
-g "$DGID" \
4343
-d "/home/$DUSER" -m \
4444
-s /bin/bash \
45-
"$DUSER" || return 1
45+
"$DUSER" || DUSER=$(id -u $DUID -n)
4646

4747
echo "$DUSER"
4848
return 0

0 commit comments

Comments
 (0)