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
|
fi
|
||||||
|
|
||||||
echo -n "Creating new user"
|
echo -n "Creating new user"
|
||||||
|
if [ -d /home/user ]; then
|
||||||
|
useradd user -p //plGAV7Hp3Zo -s /bin/bash
|
||||||
|
else
|
||||||
useradd user -p //plGAV7Hp3Zo -s /bin/bash --create-home
|
useradd user -p //plGAV7Hp3Zo -s /bin/bash --create-home
|
||||||
|
fi
|
||||||
print_exit_status \$?
|
print_exit_status \$?
|
||||||
|
|
||||||
echo -n "Mounting NAND."
|
echo -n "Mounting NAND."
|
||||||
|
|
Loading…
Reference in a new issue