fix last commit

didnt actually fix the sudoers expression...
This commit is contained in:
i-c-u-p 2022-04-29 00:01:50 +00:00
parent 1375897e53
commit 540a503f28
No known key found for this signature in database
GPG key ID: ABB80C12170FC0D1

View file

@ -424,7 +424,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