generated from gCubeCI/Pipeline-Docker-Template
Copy the profiles for the new users only.
This commit is contained in:
parent
ba454de833
commit
8de2d983da
|
@ -64,7 +64,10 @@ if [ "$USERID" -ne 1000 ]
|
|||
elif [ "$USER" != "$DEFAULT_USER" ]
|
||||
then
|
||||
## cannot move home folder when it's a shared volume, have to copy and change permissions instead
|
||||
cp -r /home/$DEFAULT_USER/.??* /home/$USER || true
|
||||
if ! [ -f /home/$USER/.profile ]
|
||||
then
|
||||
cp -r /home/$DEFAULT_USER/.??* /home/$USER || true
|
||||
fi
|
||||
## RENAME the user
|
||||
usermod -l $USER -d /home/$USER $DEFAULT_USER
|
||||
groupmod -n $USER $DEFAULT_USER
|
||||
|
|
Loading…
Reference in New Issue