summaryrefslogtreecommitdiff
path: root/irc/ircd-hybrid/pkg-install
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/pkg-install
parentMake this work with new perl version (diff)
Don't expect /etc/passwd and /etc/group to mean anything particular.
PR: ports/7708
Notes
Notes: svn path=/head/; revision=12722
Diffstat (limited to '')
-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\"."