From 4e0e6cfc81ef8fa90487b2432e4654d417156d59 Mon Sep 17 00:00:00 2001 From: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br> Date: Thu, 8 Jul 2010 16:18:17 -0300 Subject: [PATCH] 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: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br> Acked-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br> --- proinfodatadeb/package/DEBIAN/preinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proinfodatadeb/package/DEBIAN/preinst b/proinfodatadeb/package/DEBIAN/preinst index 3090654..74a4539 100755 --- a/proinfodatadeb/package/DEBIAN/preinst +++ b/proinfodatadeb/package/DEBIAN/preinst @@ -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 -- GitLab