Automate tripwire database update

This handy script will help you update your database quickly after making system changes.

When you make a change to your system file, you have to go through the database update process again, since by...

default tripwire will not update automatically. Even if you manually do it, you have to copy the database file to its right place. The following code assumes you have tripwire in /usr/local/bin/tw and database file under /var/tripwire. This script helps you update the database easily.

#!/bin/sh
# Run tripwire and update database
#
cd /usr/local/bin/tw
/usr/local/bin/tw/tripwire -init -i 2

echo "Moving database over and deleting databases directory"
mv /usr/local/bin/tw/databases/* /var/tripwire/
rm -rf databases


This was last published in June 2002

Dig Deeper on Working With Servers and Desktops

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSDN

SearchEnterpriseWAN

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close