Administrator menu
This commit is contained in:
parent
2387255259
commit
eab7c169b5
|
@ -541,11 +541,13 @@ function menu_email {
|
|||
|
||||
function menu_admin {
|
||||
if [ ! -f /etc/sudoers ]; then
|
||||
clear
|
||||
exit 0
|
||||
fi
|
||||
if grep -q "$USER ALL=(ALL) ALL" /etc/sudoers; then
|
||||
sudo freedombone-controlpanel
|
||||
else
|
||||
clear
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue