tripwire check
This commit is contained in:
parent
23f541964e
commit
144fae7bae
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue