#!/bin/sh

MALDIR=/var/lib/maldetect

# clear quarantine/session/tmp data every 14 days
/usr/sbin/tmpwatch 336 $MALDIR/tmp >> /dev/null 2>&1
/usr/sbin/tmpwatch 336 $MALDIR/sess >> /dev/null 2>&1
/usr/sbin/tmpwatch 336 $MALDIR/quarantine >> /dev/null 2>&1
/usr/sbin/tmpwatch 336 $MALDIR/pub/*/ >> /dev/null 2>&1

# check for new definition set
#/usr/sbin/maldet -u >> /dev/null 2>&1

# scan the last 2 days of file changes
# note! use ? instead *
#/usr/sbin/maldet -r /home/?/www 2 >> /dev/null 2>&1
