Allow pacman -Sy without sudo to easier installs
This commit is contained in:
@@ -36,3 +36,9 @@ if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ]; then
|
|||||||
echo -e "Failed to install Chaotic-AUR, so won't include it in pacman config!"
|
echo -e "Failed to install Chaotic-AUR, so won't include it in pacman config!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Allow repository index updates without sudo
|
||||||
|
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
||||||
|
$USER ALL=(ALL) NOPASSWD: /usr/binpacman -Sy
|
||||||
|
EOF
|
||||||
|
sudo chmod 440 /etc/sudoers.d/repositories
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
echo "Allow pacman -Sy without sudo to easier installs"
|
||||||
|
|
||||||
|
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
||||||
|
$USER ALL=(ALL) NOPASSWD: /usr/binpacman -Sy
|
||||||
|
EOF
|
||||||
|
sudo chmod 440 /etc/sudoers.d/repositories
|
||||||
Reference in New Issue
Block a user