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:
brd 2018-06-06 01:51:05 +00:00
parent c4a58f8f99
commit bab222e5fd
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}