arch-maride-flavour/steps/60-user.step

15 lines
252 B
Plaintext
Raw Normal View History

2017-08-06 15:38:48 +00:00
#!/bin/sh
echo -n "~> Do you want to create an user account? (Y/n) "
read answer
if [ "$answer" == "n" ]; then
exit 0
else
2017-08-07 14:25:59 +00:00
echo -n " Name of your new user? "
2017-08-06 15:38:48 +00:00
read name
arch-chroot /mnt useradd -m $name
2017-08-07 14:25:59 +00:00
arch-chroot /mnt passwd $name
2017-08-06 15:38:48 +00:00
exit 0
fi