# them if necessary.
#
-# $Id: user-group,v 1.7 2001-03-01 18:39:03 thib Exp $
+# $Id: user-group,v 1.8 2001-03-07 19:32:21 thib Exp $
# take 3 arguments : username
# groupname
INSTALL="nothing"
INSTALLED=0
+if test `uname -s` = "FreeBSD"; then
+ IS_FREEBSD=1
+else
+ IS_FREEBSD=0
+fi
+
if test $IS_FREEBSD -eq 1; then
CMD="pw groupadd $GROUPNAME"
else
INSTALL="nothing"
INSTALLED=0
-if test `uname -s` = "FreeBSD"; then
- IS_FREEBSD=1
-else
- IS_FREEBSD=0
-fi
-
echo -n "Checking if $USERNAME is in /etc/passwd ... "
if grep "^$USERNAME:" /etc/passwd > /dev/null; then
echo "yes."