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)
|
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[@]}" \
|
||||||
|
|
Loading…
Reference in a new issue