From 9e8ef60101a1c2acda18f536279d618cd1e12b28 Mon Sep 17 00:00:00 2001
From: DIEGO GIOVANE PASQUALIN <dgp06@c3sl.ufpr.br>
Date: Thu, 1 Jul 2010 10:55:30 -0300
Subject: [PATCH] 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: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
---
 bootstraps/bootstrap-install | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bootstraps/bootstrap-install b/bootstraps/bootstrap-install
index 3138bf4..8fcadb2 100644
--- a/bootstraps/bootstrap-install
+++ b/bootstraps/bootstrap-install
@@ -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
-- 
GitLab