move aurbuilder sudo right to /etc/sudoers.d/aurbuilder
This commit is contained in:
parent
3c2314a07d
commit
3c6145b1ad
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ case $sel in
|
|||
sudoers=$(ls /etc/sudoers.d)
|
||||
sudoerlist=()
|
||||
for itm in $sudoers; do
|
||||
if [ ! "$itm" = "aurbuilder" ]; then
|
||||
sudoerlist+=("$itm" "")
|
||||
fi
|
||||
done
|
||||
sel=$(whiptail --backtitle "$apptitle" --title "Edit sudoer :" --menu "" --cancel-button "Cancel" 0 0 0 \
|
||||
"${sudoerlist[@]}" \
|
||||
|
|
Loading…
Reference in a new issue