Skip to content
Snippets Groups Projects
Commit 9182b04f authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci
Browse files

bootstrap-install: Added "-q" (quiet) option in sudoers(1) grep(1)

parent 2b75a96d
Branches
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ if ! test -n "${PROJECTOR}" -o -f "/usr/sbin/projetor" -o \ ...@@ -88,7 +88,7 @@ if ! test -n "${PROJECTOR}" -o -f "/usr/sbin/projetor" -o \
-f "/etc/cmpc-release" -o -n "${UCA_SERVER}" -o \ -f "/etc/cmpc-release" -o -n "${UCA_SERVER}" -o \
-n "${UCA_CLASSMATE}"; then -n "${UCA_CLASSMATE}"; then
# Add root permissions to seed_mec user, without the need of password # 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 if ! $(echo "seed_mec ALL=NOPASSWD: ALL" >> /etc/sudoers); then
printf "ERRO: Falha ao adicionar permissões de super-usuário %b" \ printf "ERRO: Falha ao adicionar permissões de super-usuário %b" \
"ao seed_mec.\n" "ao seed_mec.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment