move aurbuilder sudo right to /etc/sudoers.d/aurbuilder

This commit is contained in:
MatMoul 2015-10-13 21:50:48 +02:00
parent 3c2314a07d
commit 3c6145b1ad

View file

@ -35,7 +35,9 @@ case $sel in
sudoers=$(ls /etc/sudoers.d) sudoers=$(ls /etc/sudoers.d)
sudoerlist=() sudoerlist=()
for itm in $sudoers; do for itm in $sudoers; do
sudoerlist+=("$itm" "") if [ ! "$itm" = "aurbuilder" ]; then
sudoerlist+=("$itm" "")
fi
done done
sel=$(whiptail --backtitle "$apptitle" --title "Edit sudoer :" --menu "" --cancel-button "Cancel" 0 0 0 \ sel=$(whiptail --backtitle "$apptitle" --title "Edit sudoer :" --menu "" --cancel-button "Cancel" 0 0 0 \
"${sudoerlist[@]}" \ "${sudoerlist[@]}" \