diff --git a/arch-setup/chroot.sh b/arch-setup/chroot.sh index a14d895f..5a448cc5 100755 --- a/arch-setup/chroot.sh +++ b/arch-setup/chroot.sh @@ -168,9 +168,9 @@ EOF fi mkdir -p /etc/sudoers.d -echo "$username $hostname =NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/systemctl halt,/usr/bin/systemctl reboot,/usr/bin/systemctl hibernate" >> /etc/sudoers.d/wheel +echo "$username $hostname =NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/systemctl halt,/usr/bin/systemctl reboot,/usr/bin/systemctl hibernate" > /etc/sudoers.d/wheel echo "Defaults env_reset,pwfeedback" >> /etc/sudoers.d/wheel -echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/nopwd +echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nopwd sudo -u $username bash -c "git clone https://aur.archlinux.org/yay.git /tmp/yay"