From 9e1cdcb6d32163a18b0c246c2f1a65f599917f81 Mon Sep 17 00:00:00 2001 From: Matt McKinnon Date: Thu, 3 Nov 2016 21:55:55 +1000 Subject: [PATCH] Update rkhunter paths --- rkhunter.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rkhunter.sh b/rkhunter.sh index 24e0a98..1106b35 100755 --- a/rkhunter.sh +++ b/rkhunter.sh @@ -8,8 +8,10 @@ MAILTO="support@comprofix.com" SMTP=mail.comprofix.com THISSERVER=$(hostname -f) MAILFROM="support@comprofix.com" +SENDEMAIL=$(which sendemail) + ( -/usr/bin/rkhunter --versioncheck --nocolors -/usr/bin/rkhunter --update --nocolors -/usr/bin/rkhunter --cronjob --report-warnings-only --nocolors -) | /usr/bin/sendemail -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILTO>" -u "[rkhunter] Daily Log $THISSERVER" -q +rkhunter --versioncheck --nocolors +rkhunter --update --nocolors +rkhunter --cronjob --rwo +) | $SENDEMAIL -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILTO>" -u "[rkhunter] Log $THISSERVER" -q