summaryrefslogtreecommitdiff
path: root/chat/gale/pkg/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'chat/gale/pkg/INSTALL')
-rw-r--r--chat/gale/pkg/INSTALL10
1 files changed, 5 insertions, 5 deletions
diff --git a/chat/gale/pkg/INSTALL b/chat/gale/pkg/INSTALL
index d9ad54eaf9b..e07a53bc553 100644
--- a/chat/gale/pkg/INSTALL
+++ b/chat/gale/pkg/INSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.2 2001/02/08 23:13:16 lukem Exp $
+# $NetBSD: INSTALL,v 1.3 2001/08/12 19:55:56 veego Exp $
USER=@GALE_USER@
GROUP=@GALE_GROUP@
@@ -28,18 +28,18 @@ else
fi
${RM} -f "/tmp/grouptest.$$"
-# Use `finger' to be able to use NIS.
+# Use `id' to be able to use NIS.
#
-finger ${USER} 2>&1 | ${GREP} -q "no such user"
+id ${USER} 2>/dev/null >/dev/null
if [ $? -eq 0 ]
then
+ echo "User '${USER}' already exists...proceeding."
+else
echo "Creating '${USER}' user..."
${ADDUSER} \
-c "Gale instant messaging system" \
-d /var/${USER} \
-g ${GROUP} -s /bin/sh -m ${USER}
echo "Done."
-else
- echo "User '${USER}' already exists...proceeding."
fi
exit 0