diff --git a/bootstraps/bootstrap-install b/bootstraps/bootstrap-install index f4773e7928f9af506c02bb6d6daf4ab0e57801a1..519b77f87cc9cbb7afb0a3ac228dd1d9574d07d3 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"