From 9182b04fb5b6defdca6436705beab5789c222bcb Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Thu, 26 May 2011 15:48:34 -0300 Subject: [PATCH] bootstrap-install: Added "-q" (quiet) option in sudoers(1) grep(1) Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Acked-by: Danilo Kiyoshi Simizu Yorinori <danilok@c3sl.ufpr.br> Acked-by: Victor Tarabola Cortiano <vtc10@c3sl.ufpr.br> --- bootstraps/bootstrap-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstraps/bootstrap-install b/bootstraps/bootstrap-install index f4773e7..519b77f 100644 --- a/bootstraps/bootstrap-install +++ b/bootstraps/bootstrap-install @@ -88,7 +88,7 @@ if ! test -n "${PROJECTOR}" -o -f "/usr/sbin/projetor" -o \ -f "/etc/cmpc-release" -o -n "${UCA_SERVER}" -o \ -n "${UCA_CLASSMATE}"; then # Add root permissions to seed_mec user, without the need of password - if ! grep "seed_mec" /etc/sudoers; then + if ! grep -q "seed_mec" /etc/sudoers; then if ! $(echo "seed_mec ALL=NOPASSWD: ALL" >> /etc/sudoers); then printf "ERRO: Falha ao adicionar permissões de super-usuário %b" \ "ao seed_mec.\n" -- GitLab