mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
d58802817b
forced to 3 so that the output of this script is always displayed. In fact, setting this flag is identical to setting daily_status_security_output to an empty string. To make the logic less confusing, change the behavior of daily_status_security_inline such that it just forces daily_status_security_output to an empty string and then applies the normal logic. PR: conf/178611 Submitted by: Jason Unovitch <jason.unovitch@gmail.com> MFC after: 3 days
42 lines
694 B
Bash
Executable File
42 lines
694 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])
|
|
daily_status_security_output="";;
|
|
esac
|
|
|
|
export security_output="${daily_status_security_output}"
|
|
case "${daily_status_security_output}" in
|
|
"")
|
|
rc=3;;
|
|
/*)
|
|
echo " (output logged separately)"
|
|
rc=0;;
|
|
*)
|
|
echo " (output mailed separately)"
|
|
rc=0;;
|
|
esac
|
|
|
|
periodic security || rc=3;;
|
|
|
|
*) rc=0;;
|
|
esac
|
|
|
|
exit $rc
|