aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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