Don't need this if email is configured properly

This commit is contained in:
Bob Mottram 2017-08-04 23:50:58 +01:00
parent 1d3e165d2d
commit 26b80c868f
1 changed files with 1 additions and 6 deletions

View File

@ -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
} }