dont add home directory for new user if it exists

This commit is contained in:
josch 2010-08-26 15:51:03 +02:00
parent 893e13cae9
commit 2e24f920cd

View file

@ -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."