Skip to content
Snippets Groups Projects
Commit 9e8ef601 authored by DIEGO GIOVANE PASQUALIN's avatar DIEGO GIOVANE PASQUALIN Committed by Vinicius Ruoso
Browse files

bootstrap-install: Fix agent install failure on "Linux Educacional" system


The argument "-r" used by groupadd(8) and useradd(8) is not present on
passwd package installed on "Linux Educational" distribution. Also, this
argument is not necessary in any other linux distributions, so it is being
removed.

Signed-off-by: default avatarDiego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
parent 45817867
No related branches found
No related tags found
No related merge requests found
......@@ -52,13 +52,13 @@ verify_md5(){
# Begin of script
# Creating seed_mec group and user
if ! groupadd -fr seed_mec; then
if ! groupadd -f seed_mec; then
abort "falha ao criar o grupo seed_mec."
fi
# This is a temporary skel directory to avoid installing the default skel
TMPSKEL=$(mktemp -d)
if ! useradd -rm -g seed_mec -s /bin/bash -d "${SEED_MEC_HOME}" \
if ! useradd -m -g seed_mec -s /bin/bash -d "${SEED_MEC_HOME}" \
-k "${TMPSKEL}" seed_mec; then
abort "falha ao criar o usuário seed_mec."
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment