summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'z-distfiles/scripts-gw-1.0/tripUpdate')
-rwxr-xr-xz-distfiles/scripts-gw-1.0/tripUpdate5
1 files changed, 5 insertions, 0 deletions
diff --git a/z-distfiles/scripts-gw-1.0/tripUpdate b/z-distfiles/scripts-gw-1.0/tripUpdate
new file mode 100755
index 0000000..3eb69e8
--- /dev/null
+++ b/z-distfiles/scripts-gw-1.0/tripUpdate
@@ -0,0 +1,5 @@
+#!/bin/bash
+DIR=/var/lib/tripwire/report
+HOST=`hostname -s`
+LAST_REPORT=`ls -1t $DIR/$HOST-*.twr | head -n 1`
+tripwire --update --twrfile "$LAST_REPORT"