1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Search for the mailnull user quietly (grep -q).

This commit is contained in:
Sheldon Hearn 2001-12-18 21:08:44 +00:00
parent 609a70ed42
commit fb48c356b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51755
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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