diff options
author | cjc <cjc@FreeBSD.org> | 2001-12-07 23:57:39 +0000 |
---|---|---|
committer | cjc <cjc@FreeBSD.org> | 2001-12-07 23:57:39 +0000 |
commit | ba1e7b85770ec4a614f79c25d579dcd341018bdd (patch) | |
tree | a90b7b90f63cfbd9961c5d653c2f3a139806e2b1 /etc/periodic/daily | |
parent | be29456bc43b8c5ac3ee45ea4f345a65df0637ff (diff) | |
download | FreeBSD-src-ba1e7b85770ec4a614f79c25d579dcd341018bdd.zip FreeBSD-src-ba1e7b85770ec4a614f79c25d579dcd341018bdd.tar.gz |
Long ago, there was just /etc/daily. Then /etc/security was split out
of /etc/daily. Some time later, /etc/daily became a set of periodic(8)
scripts. Now, this evolution continues, and /etc/security has been
broken into periodic(8) scripts to make local customization easier and
more maintainable.
Reviewed by: ru
Approved by: ru
Diffstat (limited to 'etc/periodic/daily')
-rwxr-xr-x | etc/periodic/daily/450.status-security | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/etc/periodic/daily/450.status-security b/etc/periodic/daily/450.status-security index ce3288a..00889aa 100755 --- a/etc/periodic/daily/450.status-security +++ b/etc/periodic/daily/450.status-security @@ -16,30 +16,23 @@ case "$daily_status_security_enable" in echo "" echo "Security check:" - case "$daily_status_security_noamd" in - [Yy][Ee][Ss]) - args=-a;; - *) - args=;; - esac - case "$daily_status_security_inline" in [Yy][Ee][Ss]) - sh /etc/security -s $args - rc=$?;; - + export security_output="";; *) - case "${daily_status_security_output:=root}" in + export security_output="${daily_status_security_output}" + case "${daily_status_security_output}" in + "") + ;; /*) - echo " (output logged separately)" - sh /etc/security -s $args \ - >$daily_status_security_output 2>&1;; + echo " (output logged separately)";; *) - echo " (output mailed separately)" - sh /etc/security $args 2>&1 | - mail -s "`hostname` security check output" $daily_status_security_output;; + echo " (output mailed separately)";; esac;; - esac;; + esac + + periodic security + rc=$?;; *) rc=0;; esac |