summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl
diff options
context:
space:
mode:
authorveego <veego>2001-08-12 19:45:18 +0000
committerveego <veego>2001-08-12 19:45:18 +0000
commit15b1593646c4a0c2b6a8aca9123077d9f48607f1 (patch)
tree94b17d19f72f6a42b1a1ce1fd440291a8116540e /security/cyrus-sasl
parent2f27ad9c5e7cc4a001c4727a1016721419fa1065 (diff)
downloadpkgsrc-15b1593646c4a0c2b6a8aca9123077d9f48607f1.tar.gz
Fix same problems with the user check:
- use 'id' instead of 'finger'. this is not a real problem but it is enough and fixing the next problem makes it possible to use it. - grep -q doesn't work on solaris, so use a different way to suppress the output from the user check. - the return code check for the user was reversed.
Diffstat (limited to 'security/cyrus-sasl')
-rw-r--r--security/cyrus-sasl/pkg/INSTALL10
1 files changed, 5 insertions, 5 deletions
diff --git a/security/cyrus-sasl/pkg/INSTALL b/security/cyrus-sasl/pkg/INSTALL
index ad150fe553c..a2746dd75cb 100644
--- a/security/cyrus-sasl/pkg/INSTALL
+++ b/security/cyrus-sasl/pkg/INSTALL
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: INSTALL,v 1.1 2000/12/10 09:43:38 jlam Exp $
+# $NetBSD: INSTALL,v 1.2 2001/08/12 19:45:18 veego Exp $
PKGNAME=$1
STAGE=$2
@@ -39,16 +39,16 @@ PRE-INSTALL)
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 "Cyrus User" -g ${GROUP} -s /bin/sh ${USER}
echo "Done."
- else
- echo "User '${USER}' already exists...proceeding."
fi
;;