From 10f56f6d84fafbd20f7e1889fb16dbed9baccad8 Mon Sep 17 00:00:00 2001 From: natemaia Date: Fri, 4 Feb 2022 11:24:36 -0800 Subject: [PATCH] Fix sudoers issue --- installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer b/installer index cc42c4e..0485621 100755 --- a/installer +++ b/installer @@ -6,7 +6,7 @@ # AIF, Calamares, and the Arch Wiki.. Credit where credit is due # shellcheck disable=2086,2046,2254,2164,2030,2031 -VER=2.13 +VER=2.14 # default values { @@ -1722,7 +1722,7 @@ install_main() fi # allow members of the wheel group to run commands as root - sed -i "s/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g" "$MNT/etc/sudoers" + sed -i 's/^# \(%wheel ALL=(ALL.*) ALL\)$/\1/g' "$MNT/etc/sudoers" if [[ "$USERCMD" ]]; then chrun "$USERCMD" 2> "$ERR" 2>&1