cron.daily/security

changeset 20
1d18ebb9e279
parent 19
2c0dacb26b14
child 21
735fe1b89e5a
equal deleted inserted replaced
19:2c0dacb26b14 20:1d18ebb9e279
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.20 25 VERSION=0.21
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`
32 32
33 if [ "${MAILTO}" = "" ]; then 33 if [ "${MAILTO}" = "" ]; then
34 MAILTO=root 34 MAILTO=root
35 fi 35 fi
36 36
37 DAILYDIR=`mktemp -d /tmp/_daily.XXXXXX` || exit 1 37 DAILYDIR=$(mktemp -d /tmp/_daily.XXXXXX) || exit 1
38 SECOUT="$DAILYDIR/secout" 38 SECOUT="$DAILYDIR/secout"
39 TMP1="$DAILYDIR/tmp1" 39 TMP1="$DAILYDIR/tmp1"
40 40
41 trap "/bin/rm -rf $DAILYDIR ; exit 0" EXIT INT QUIT 41 trap "/bin/rm -rf $DAILYDIR ; exit 0" EXIT INT QUIT
42 42

mercurial