dont add home directory for new user if it exists
This commit is contained in:
parent
893e13cae9
commit
2e24f920cd
1 changed files with 5 additions and 1 deletions
|
@ -360,7 +360,11 @@ __HOSTS__
|
|||
fi
|
||||
|
||||
echo -n "Creating new user"
|
||||
useradd user -p //plGAV7Hp3Zo -s /bin/bash --create-home
|
||||
if [ -d /home/user ]; then
|
||||
useradd user -p //plGAV7Hp3Zo -s /bin/bash
|
||||
else
|
||||
useradd user -p //plGAV7Hp3Zo -s /bin/bash --create-home
|
||||
fi
|
||||
print_exit_status \$?
|
||||
|
||||
echo -n "Mounting NAND."
|
||||
|
|
Loading…
Reference in a new issue