freebsd-dev/etc/periodic/daily/450.status-security
brian 990cb96668 Return 3 unless $daily_status_security_enable != YES.
Returning $? masks security output when ``periodic security'' is successful !

MFC after:	3 days
2002-05-17 11:31:45 +00:00

41 lines
686 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
case "$daily_status_security_enable" in
[Yy][Ee][Ss])
echo ""
echo "Security check:"
case "$daily_status_security_inline" in
[Yy][Ee][Ss])
export security_output="";;
*)
export security_output="${daily_status_security_output}"
case "${daily_status_security_output}" in
"")
;;
/*)
echo " (output logged separately)";;
*)
echo " (output mailed separately)";;
esac;;
esac
periodic security
rc=3;;
*) rc=0;;
esac
exit $rc