From db42b170555bcb38493d96da03e8877b59eec611 Mon Sep 17 00:00:00 2001 From: gshapiro Date: Sun, 6 Jul 2003 19:37:40 +0000 Subject: Use 'id' instead of 'grep' to detect the presence of the smmsp user/group. This fixes the check for users with smmsp in NIS instead of their local files. Suggested by: peter MFC after: 5 days --- Makefile.inc1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.inc1') diff --git a/Makefile.inc1 b/Makefile.inc1 index 97d2486..78e7ee4 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -373,11 +373,11 @@ buildworld: ${WMAKE_TGTS} # installcheck: .if !defined(NO_SENDMAIL) - @if ! `grep -q '^smmsp:' /etc/passwd`; then \ + @if ! `id -u smmsp > /dev/null`; then \ echo "ERROR: Required smmsp user is missing, see /usr/src/UPDATING."; \ false; \ fi - @if ! `grep -q '^smmsp:' /etc/group`; then \ + @if ! `id -g smmsp > /dev/null`; then \ echo "ERROR: Required smmsp group is missing, see /usr/src/UPDATING."; \ false; \ fi -- cgit v1.1