Make sure the security check output includes a To: line in the
same way the daily run output does.
This commit is contained in:
parent
01a0db1367
commit
b5c013b6b9
@ -37,7 +37,7 @@ case "$daily_status_security_enable" in
|
||||
*)
|
||||
echo " (output mailed separately)"
|
||||
sh /etc/security $args 2>&1 |
|
||||
sendmail $daily_status_security_output;;
|
||||
mail -s "`hostname` security check output" $daily_status_security_output;;
|
||||
esac;;
|
||||
esac;;
|
||||
|
||||
|
@ -58,8 +58,6 @@ done
|
||||
yesterday=`date -v-1d "+%b %e "`
|
||||
|
||||
host=`hostname`
|
||||
[ $sflag = FALSE ] && echo "To: root@${host}"
|
||||
[ $sflag = FALSE ] && echo "Subject: ${host} security check output"
|
||||
|
||||
umask 027
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user