|
|
@ -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" |
|
|
|