Get rid of all naked -Sy usage

This commit is contained in:
David Heinemeier Hansson
2025-08-27 14:52:38 +02:00
parent 4cbc8eef43
commit 20ab2ee81e
15 changed files with 13 additions and 26 deletions

View File

@@ -37,9 +37,3 @@ if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ]; then
echo -e "Failed to install Chaotic-AUR, so won't include it in pacman config!"
fi
fi
# Allow repository index updates without sudo
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
EOF
sudo chmod 440 /etc/sudoers.d/repositories