Add user step

This commit is contained in:
maride 2017-08-06 17:38:48 +02:00
parent 6bd7102277
commit a5b0267b9c

14
steps/60-user.step Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
echo -n "~> Do you want to create an user account? (Y/n) "
read answer
if [ "$answer" == "n" ]; then
exit 0
else
echo -n " Name of your new user?"
read name
arch-chroot /mnt useradd -m $name
passwd $name
exit 0
fi