summaryrefslogtreecommitdiffstats
path: root/etc/periodic/monthly/450.status-security
blob: 027c896d4d2fbf9194557503cc901481ff240511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/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 "$monthly_status_security_enable" in
    [Yy][Ee][Ss])
	echo ""
	echo "Security check:"

	case "$monthly_status_security_inline" in
	    [Yy][Ee][Ss])
		monthly_status_security_output="";;
	esac

	export security_output="${monthly_status_security_output}"
	case "${monthly_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
OpenPOWER on IntegriCloud