Only create /var/log/sendmail.st if start sendmail.

For those of us that never use or start sendmail, it is unneeded.

Approved by:	bapt (mentor)
This commit is contained in:
Brad Davis 2018-06-06 01:51:05 +00:00
parent 9f6fd8397c
commit 64fe1b5e1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334700
2 changed files with 4 additions and 2 deletions

View file

@ -197,6 +197,10 @@ sendmail_precmd()
sendmail_cert_create
fi
fi
if [ ! -f /var/log/sendmail.st ]; then
/usr/bin/install -m 640 -o root -g wheel /dev/null /var/log/sendmail.st
fi
}
run_rc_command "$1"

View file

@ -70,8 +70,6 @@ distribution:
${.CURDIR}/freebsd.submit.mc freebsd.submit.cf ${DESTDIR}/etc/mail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${SMDIR}/helpfile ${DESTDIR}/etc/mail
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \
/dev/null ${DESTDIR}/var/log/sendmail.st
.if defined(INSTALL_CF)
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${INSTALL_CF} ${DEST_CF}