diff options
author | hoek <hoek@FreeBSD.org> | 1998-08-23 00:12:14 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 1998-08-23 00:12:14 +0000 |
commit | b8aca262949832aed4de7ff33a115fe5fb5ed231 (patch) | |
tree | 2063dd1904e18ec8a30514a4739ade1ea1aa53f0 /irc | |
parent | fad4af107d51de53dd35efbf871b11b97fcd2c88 (diff) | |
download | FreeBSD-ports-b8aca262949832aed4de7ff33a115fe5fb5ed231.zip FreeBSD-ports-b8aca262949832aed4de7ff33a115fe5fb5ed231.tar.gz |
Don't expect /etc/passwd and /etc/group to mean anything particular.
PR: ports/7708
Diffstat (limited to 'irc')
-rw-r--r-- | irc/ircd-hybrid/pkg-install | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/irc/ircd-hybrid/pkg-install b/irc/ircd-hybrid/pkg-install index e5a08fe..4f07484 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\"." |