aboutsummaryrefslogtreecommitdiff
path: root/irc/ircd-hybrid
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>1998-08-23 00:12:14 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>1998-08-23 00:12:14 +0000
commit2606c7818d683acec76c8facb8327e317af0e881 (patch)
treeb2d5d217ae1166f55ccc6ff9dcde89f230cfc3e7 /irc/ircd-hybrid
parent70e28ab1bfbe105846983b90e96a0e62a9514b13 (diff)
downloadports-2606c7818d683acec76c8facb8327e317af0e881.tar.gz
ports-2606c7818d683acec76c8facb8327e317af0e881.zip
Notes
Diffstat (limited to 'irc/ircd-hybrid')
-rw-r--r--irc/ircd-hybrid/pkg-install10
1 files changed, 5 insertions, 5 deletions
diff --git a/irc/ircd-hybrid/pkg-install b/irc/ircd-hybrid/pkg-install
index e5a08fef4844..4f07484c21a1 100644
--- a/irc/ircd-hybrid/pkg-install
+++ b/irc/ircd-hybrid/pkg-install
@@ -50,7 +50,7 @@ EOF
fi
echo ""
-if grep -q "^ircd:" /etc/group; then
+if pw groupshow ircd 2> /dev/nul ; then
echo "You already have a group \"ircd\", so I will use it."
else
echo "You need a group \"ircd\"."
@@ -59,15 +59,15 @@ else
echo "Done."
else
echo "Please create it, and try again."
- if ! grep -q "^ircd:" /etc/passwd; then
- echo "While you're at it, please create a user \"${user}\" too,"
- echo "with a default group of \"${group}\"."
+ if ! pw usershow ircd 2> /dev/null ; then
+ echo "While you're at it, please create a user \"ircd\""
+ echo 'too, with a default group of "ircd".'
fi
exit 1
fi
fi
-if grep -q "^ircd:" /etc/passwd; then
+if pw usershow ircd 2> /dev/null ; then
echo "You already have a user \"ircd\", so I will use it."
else
echo "You need a user \"ircd\"."