aboutsummaryrefslogtreecommitdiffstats
path: root/add-user
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-07-12 15:20:59 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-07-12 15:20:59 +0000
commitb07cafae5c560246fd09688e1524b777b1f9eabb (patch)
tree1cd38dc109b21f0c24ba5014ce26646b1f69832b /add-user
parentceaec14bef72b558f56212b64111fa9e826e85d3 (diff)
downloadrpm-helper-b07cafae5c560246fd09688e1524b777b1f9eabb.tar
rpm-helper-b07cafae5c560246fd09688e1524b777b1f9eabb.tar.gz
rpm-helper-b07cafae5c560246fd09688e1524b777b1f9eabb.tar.bz2
rpm-helper-b07cafae5c560246fd09688e1524b777b1f9eabb.tar.xz
rpm-helper-b07cafae5c560246fd09688e1524b777b1f9eabb.zip
added missing groupadd call
Diffstat (limited to 'add-user')
-rwxr-xr-xadd-user6
1 files changed, 4 insertions, 2 deletions
diff --git a/add-user b/add-user
index 74b8c8e..f2d1126 100755
--- a/add-user
+++ b/add-user
@@ -28,10 +28,12 @@ if [ $# -gt 0 ]; then
shift
for g in $*; do
garg="$garg,$g"
-
+ /usr/sbin/groupadd -r $g > /dev/null 2>&1
done
fi
-/usr/sbin/useradd -r -M -s $shell -d $dir -c "system user for $pkg" $garg $name > /dev/null 2>&1 || :
+/usr/sbin/useradd -r -M -s $shell -d $dir -c "system user for $pkg" $garg $name > /dev/null 2>&1
+
+exit 0
# add-user ends here