#!/bin/bash
#
# $Id: twupdate,v 1.1 2001/12/20 14:24:12 cvs Exp $
#
# Script to update tripwire database with the last report found
# Miguel Armas <kuko@optyma.net>

# Tripwire report directory
REPORTDIR="/var/lib/tripwire/report"

report=`ls $REPORTDIR | grep -v ".bak" | tail -1`

echo "*** Updating TripWire with report: $report ***"

tripwire --update -r $REPORTDIR/$report
