From 3c6145b1ad9f2d05ed78e0861a29f09a7b1a5e8d Mon Sep 17 00:00:00 2001 From: MatMoul Date: Tue, 13 Oct 2015 21:50:48 +0200 Subject: [PATCH] move aurbuilder sudo right to /etc/sudoers.d/aurbuilder --- config/sudoers/menu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/sudoers/menu b/config/sudoers/menu index 43364e0..eed0b19 100644 --- a/config/sudoers/menu +++ b/config/sudoers/menu @@ -35,7 +35,9 @@ case $sel in sudoers=$(ls /etc/sudoers.d) sudoerlist=() for itm in $sudoers; do - sudoerlist+=("$itm" "") + if [ ! "$itm" = "aurbuilder" ]; then + sudoerlist+=("$itm" "") + fi done sel=$(whiptail --backtitle "$apptitle" --title "Edit sudoer :" --menu "" --cancel-button "Cancel" 0 0 0 \ "${sudoerlist[@]}" \