Fix sudoers issue

This commit is contained in:
natemaia 2022-02-04 11:24:36 -08:00
parent 9c3ab8ee24
commit 10f56f6d84

View File

@ -6,7 +6,7 @@
# AIF, Calamares, and the Arch Wiki.. Credit where credit is due # AIF, Calamares, and the Arch Wiki.. Credit where credit is due
# shellcheck disable=2086,2046,2254,2164,2030,2031 # shellcheck disable=2086,2046,2254,2164,2030,2031
VER=2.13 VER=2.14
# default values { # default values {
@ -1722,7 +1722,7 @@ install_main()
fi fi
# allow members of the wheel group to run commands as root # 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 if [[ "$USERCMD" ]]; then
chrun "$USERCMD" 2> "$ERR" 2>&1 chrun "$USERCMD" 2> "$ERR" 2>&1