From 540a503f287b14ad280d6b3ecbf2975f0cf7eae1 Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Fri, 29 Apr 2022 00:01:50 +0000 Subject: [PATCH] fix last commit didnt actually fix the sudoers expression... --- easy-arch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index 1569ff4..3dd000a 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -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