tripwire check

This commit is contained in:
Bob Mottram 2017-08-04 18:28:43 +01:00
parent 23f541964e
commit 144fae7bae
1 changed files with 5 additions and 3 deletions

View File

@ -139,9 +139,11 @@ function install_tripwire {
' | reset-tripwire
if ! grep -q "tripwire" /etc/crontab; then
TRIPWIRE_MIN=$((1 + RANDOM % 49))
TRIPWIRE_HOUR=$((1 + RANDOM % 6))
echo "${TRIPWIRE_MIN} ${TRIPWIRE_HOUR} * * * root /usr/sbin/tripwire -m c" /etc/crontab
echo "${TRIPWIRE_MIN} ${TRIPWIRE_HOUR} * * * root /usr/sbin/tripwire -m c" >> /etc/crontab
fi
mark_completed $FUNCNAME
}