fixed default shell

This commit is contained in:
Patrick 2024-11-17 18:55:46 +01:00
parent df0d38a41b
commit 068db38f78

View file

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