Don't need this if email is configured properly
This commit is contained in:
parent
1d3e165d2d
commit
26b80c868f
|
@ -76,6 +76,7 @@ function install_tripwire {
|
||||||
echo 'REPORTLEVEL =3' >> /etc/tripwire/twcfg.txt
|
echo 'REPORTLEVEL =3' >> /etc/tripwire/twcfg.txt
|
||||||
echo 'SYSLOGREPORTING =false' >> /etc/tripwire/twcfg.txt
|
echo 'SYSLOGREPORTING =false' >> /etc/tripwire/twcfg.txt
|
||||||
echo 'MAILMETHOD =SENDMAIL' >> /etc/tripwire/twcfg.txt
|
echo 'MAILMETHOD =SENDMAIL' >> /etc/tripwire/twcfg.txt
|
||||||
|
echo 'MAILPROGRAM =/usr/lib/sendmail -oi -t' >> /etc/tripwire/twcfg.txt
|
||||||
echo 'SMTPHOST =localhost' >> /etc/tripwire/twcfg.txt
|
echo 'SMTPHOST =localhost' >> /etc/tripwire/twcfg.txt
|
||||||
echo 'SMTPPORT =25' >> /etc/tripwire/twcfg.txt
|
echo 'SMTPPORT =25' >> /etc/tripwire/twcfg.txt
|
||||||
echo 'TEMPDIRECTORY =/tmp' >> /etc/tripwire/twcfg.txt
|
echo 'TEMPDIRECTORY =/tmp' >> /etc/tripwire/twcfg.txt
|
||||||
|
@ -139,12 +140,6 @@ function install_tripwire {
|
||||||
|
|
||||||
' | reset-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
|
|
||||||
fi
|
|
||||||
|
|
||||||
mark_completed $FUNCNAME
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue