tripwire check
This commit is contained in:
parent
23f541964e
commit
144fae7bae
|
@ -139,9 +139,11 @@ function install_tripwire {
|
||||||
|
|
||||||
' | reset-tripwire
|
' | reset-tripwire
|
||||||
|
|
||||||
TRIPWIRE_MIN=$((1 + RANDOM % 49))
|
if ! grep -q "tripwire" /etc/crontab; then
|
||||||
TRIPWIRE_HOUR=$((1 + RANDOM % 6))
|
TRIPWIRE_MIN=$((1 + RANDOM % 49))
|
||||||
echo "${TRIPWIRE_MIN} ${TRIPWIRE_HOUR} * * * root /usr/sbin/tripwire -m c" /etc/crontab
|
TRIPWIRE_HOUR=$((1 + RANDOM % 6))
|
||||||
|
echo "${TRIPWIRE_MIN} ${TRIPWIRE_HOUR} * * * root /usr/sbin/tripwire -m c" >> /etc/crontab
|
||||||
|
fi
|
||||||
|
|
||||||
mark_completed $FUNCNAME
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue