fix typo in last commit

This commit is contained in:
i-c-u-p 2022-04-25 09:55:43 +00:00
parent 7797b19331
commit 527e71124b
No known key found for this signature in database
GPG key ID: ABB80C12170FC0D1

View file

@ -373,7 +373,7 @@ echo "root:$rootpass" | arch-chroot /mnt chpasswd
if [ -n "$username" ]; then
print "Adding the user $username to the system with root privilege."
arch-chroot /mnt useradd -m -G wheel -s /bin/bash "$username"
sed -i '%wheel ALL=(ALL) ALL/s/^# //' /mnt/etc/sudoers
sed -i '/%wheel ALL=(ALL) ALL/s/^# //' /mnt/etc/sudoers
print "Setting user password for $username."
echo "$username:$userpass" | arch-chroot /mnt chpasswd
fi