cron.daily/security

changeset 19
2c0dacb26b14
parent 18
2b7620bf17e6
child 20
1d18ebb9e279
equal deleted inserted replaced
18:2b7620bf17e6 19:2c0dacb26b14
20 # You should have received a copy of the GNU General Public License 20 # You should have received a copy of the GNU General Public License
21 # along with MBSE BBS; see the file COPYING. If not, write to the Free 21 # along with MBSE BBS; see the file COPYING. If not, write to the Free
22 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 22 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 ############################################################################# 23 #############################################################################
24 24
25 VERSION=0.19 25 VERSION=0.20
26 export PATH=/bin:/usr/bin:/sbin:/usr/sbin 26 export PATH=/bin:/usr/bin:/sbin:/usr/sbin
27 umask 077 27 umask 077
28 LANG=C; export LANG 28 LANG=C; export LANG
29 29
30 fqdn=`hostname -f` 30 fqdn=`hostname -f`
65 echo "------------------------------------------------------------------------------" >> $SECOUT 65 echo "------------------------------------------------------------------------------" >> $SECOUT
66 fi 66 fi
67 fi 67 fi
68 done 68 done
69 69
70 env MAILRC=/dev/null mail -s "$fqdn daily insecurity output for $date" $MAILTO < $SECOUT 70 if [ -s "$SECOUT" ]; then
71 env MAILRC=/dev/null mail -s "$fqdn daily insecurity output for $date" $MAILTO < $SECOUT
72 fi
73

mercurial