Also allow yay updates without sudo

This commit is contained in:
David Heinemeier Hansson 2025-08-25 13:52:53 +02:00
parent 1506b98fe1
commit 06e3cb4e71

View File

@ -41,5 +41,6 @@ fi
# Allow repository index updates without sudo # Allow repository index updates without sudo
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy $USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
$USER ALL=(ALL) NOPASSWD: /usr/bin/yay -Sy
EOF EOF
sudo chmod 440 /etc/sudoers.d/repositories sudo chmod 440 /etc/sudoers.d/repositories