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
This commit is contained in:
parent
6e82f17aa8
commit
d0c749d35f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117293
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user