mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-07 08:56:16 +01:00
Update startup.sh
This commit is contained in:
parent
f1d75c13c6
commit
8d7f32c865
1 changed files with 1 additions and 1 deletions
|
|
@ -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\""
|
||||
|
|
|
|||
Loading…
Reference in a new issue