diff --git a/02_userconf.sh b/02_userconf.sh index 9831fe2..467cd3b 100644 --- a/02_userconf.sh +++ b/02_userconf.sh @@ -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