aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-ids/tripwire/files/tripwire.cron
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-ids/tripwire/files/tripwire.cron')
-rw-r--r--recipes-ids/tripwire/files/tripwire.cron8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-ids/tripwire/files/tripwire.cron b/recipes-ids/tripwire/files/tripwire.cron
new file mode 100644
index 0000000..2035508
--- /dev/null
+++ b/recipes-ids/tripwire/files/tripwire.cron
@@ -0,0 +1,8 @@
+#!/bin/sh
+HOST_NAME=`uname -n`
+if [ ! -e /var/lib/tripwire/${HOST_NAME}.twd ] ; then
+ echo "**** Error: Tripwire database for ${HOST_NAME} not found. ****"
+ echo "**** Run "/etc/tripwire/twinstall.sh" and/or "tripwire --init". ****"
+else
+ test -f /etc/tripwire/tw.cfg && /usr/sbin/tripwire --check
+fi