if [ -z "$type" ]; then type=scan fi cat >> $tmpf <> $tmpf fi if [ "$days" ] && [ ! "$days" == "all" ]; then echo "RANGE: $days days" >> $tmpf fi cat >> $tmpf <> $tmpf echo "To enable, set quarantine_hits=1 and/or to quarantine hits from this scan run:" >> $tmpf echo -e "/usr/local/sbin/maldet -q $datestamp.$$\n" >> $tmpf elif [ "$quarantine_hits" == "1" ]; then echo "NOTICE: Automatic quarantine is enabled, and all detected threats have been quarantined." >> $tmpf echo "All quarantined files have been moved to $quardir, and their metadata have been preserved." >> $tmpf echo "Please see below for details on which files have been moved to quarantine." >> $tmpf fi if [ "$quarantine_clean" == "1" ]; then if [ "$type" == "scan" ] && [ -f "$sessdir/clean.$$" ] && [ ! -z "$(cat $sessdir/clean.$$)" ]; then cleaned_list="$sessdir/clean.$$" fi if [ -f "$cleaned_list" ]; then cat >> $tmpf <> $tmpf <> $tmpf if [ "$coltest" ]; then cat $hitlist_file | column -s ':' -t -o ':' >> $tmpf else cat $hitlist_file >> $tmpf fi fi fi cat >> $tmpf < EOF