fixed default shell
This commit is contained in:
parent
df0d38a41b
commit
068db38f78
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ trap '' SIGINT SIGTERM
|
|||
while true; do
|
||||
read -p "Enter a username (letters, preferably only lowercase, digits, underscores and hyphens): " username
|
||||
chroot /mnt /bin/bash -c "useradd -m '$username'"
|
||||
chroot /mnt /bin/bash -c "chsh -s /bin/bash '$username'"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue