aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-12-19 05:08:44 +0800
committersheldonh <sheldonh@FreeBSD.org>2001-12-19 05:08:44 +0800
commit0fe0d32bca5f932283dc2a42a446f61fb2d6c58a (patch)
tree0b4ca37df2dbd6bac2d7c27cd4ccf9394054cc12 /mail
parentc15e69effb4abfaef2bd52e21ff627394c68f2e7 (diff)
downloadfreebsd-ports-gnome-0fe0d32bca5f932283dc2a42a446f61fb2d6c58a.tar.gz
freebsd-ports-gnome-0fe0d32bca5f932283dc2a42a446f61fb2d6c58a.tar.zst
freebsd-ports-gnome-0fe0d32bca5f932283dc2a42a446f61fb2d6c58a.zip
Search for the mailnull user quietly (grep -q).
Diffstat (limited to 'mail')
-rw-r--r--mail/exim-old/pkg-install4
-rw-r--r--mail/exim/pkg-install4
2 files changed, 4 insertions, 4 deletions
diff --git a/mail/exim-old/pkg-install b/mail/exim-old/pkg-install
index 3a1673907c5c..69539a8c560f 100644
--- a/mail/exim-old/pkg-install
+++ b/mail/exim-old/pkg-install
@@ -20,11 +20,11 @@ group=mail
if [ "$2" = "PRE-INSTALL" ]; then
# uid=26(mailnull) gid=26(mailnull) groups=26(mailnull)
- if ! /usr/bin/id ${uid} | /usr/bin/grep "uid=${uid}(${user})"; then
+ if ! /usr/bin/id ${uid} | /usr/bin/grep -q "uid=${uid}(${user})"; then
echo "Exim requires user ${user} (UID ${uid}). Please update your system." 1>&2
exit 1
fi
- if ! /usr/bin/grep "^${group}:[^:]*:${gid}:" < /etc/group; then
+ if ! /usr/bin/grep -q "^${group}:[^:]*:${gid}:" < /etc/group; then
echo "Exim requires group ${group} (GID ${gid}). Please update your system." 1>&2
exit 1
fi
diff --git a/mail/exim/pkg-install b/mail/exim/pkg-install
index 3a1673907c5c..69539a8c560f 100644
--- a/mail/exim/pkg-install
+++ b/mail/exim/pkg-install
@@ -20,11 +20,11 @@ group=mail
if [ "$2" = "PRE-INSTALL" ]; then
# uid=26(mailnull) gid=26(mailnull) groups=26(mailnull)
- if ! /usr/bin/id ${uid} | /usr/bin/grep "uid=${uid}(${user})"; then
+ if ! /usr/bin/id ${uid} | /usr/bin/grep -q "uid=${uid}(${user})"; then
echo "Exim requires user ${user} (UID ${uid}). Please update your system." 1>&2
exit 1
fi
- if ! /usr/bin/grep "^${group}:[^:]*:${gid}:" < /etc/group; then
+ if ! /usr/bin/grep -q "^${group}:[^:]*:${gid}:" < /etc/group; then
echo "Exim requires group ${group} (GID ${gid}). Please update your system." 1>&2
exit 1
fi