Merge pull request #11 from devindice/devindice-patch-1

Update startup.sh
This commit is contained in:
Devin Dice 2022-08-18 16:43:11 -04:00 committed by GitHub
commit 431aae4a12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ HOME=/root
if [ "$USER" != "root" ]; then
echo "* enable custom user: $USER"
#useradd --create-home --shell /bin/bash --user-group --groups adm,sudo,docker -d /workspace/.home/$USER $USER
useradd --create-home --shell /bin/bash --user-group --groups adm,sudo,docker $(if [ -z $PUID ]; then echo "--uid $PUID"; fi) $(if [ -z $PGID ]; then echo "--gid $PGID"; fi) $USER
useradd --create-home --shell /bin/bash --user-group --groups adm,sudo,docker $(if [ ! $PUID == "" ]; then echo "--uid $PUID"; fi) $(if [ ! $PGID == "" ]; then echo "--gid $PGID"; fi) $USER
if [ -z "$PASSWORD" ]; then
echo " set default password to \"ubuntu\""