Skip to content
Snippets Groups Projects
Commit 4e0e6cfc authored by Ricardo Tavares de Oliveira's avatar Ricardo Tavares de Oliveira Committed by Vinicius Ruoso
Browse files

Fix preinst: 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.

Acked-by: default avatarDanilo K. S. Yorinori <danilok@c3sl.ufpr.br>
Acked-by: default avatarDiego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
Signed-off-by: default avatarRicardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
parent 14a8d4d7
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ abort() {
}
# Create seed_mec group
if ! groupadd -fr seed_mec; then
if ! groupadd -f seed_mec; then
abort "error while creating the group seed_mec."
fi
......@@ -40,7 +40,7 @@ fi
mkdir -p ${SEED_MEC_HOME}
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 "error while creating the user seed_mec."
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment