Don't add the atrun-line to the crontab when MK_AT is set.

This prevents spurious calls to sendmail every 5 minutes.

MFC after:	1 week
This commit is contained in:
Ed Schouten 2010-03-19 11:59:02 +00:00
parent 28ad01d2ba
commit 5743a283c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205329

View File

@ -161,6 +161,9 @@ distribution:
${BIN2} ${DESTDIR}/etc; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
.if ${MK_AT} == "no"
sed -i "" -e '/atrun/d' ${DESTDIR}/etc/crontab
.endif
.if ${MK_TCSH} == "no"
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
.endif