Skip to content
Snippets Groups Projects
Unverified Commit 4e797ea5 authored by David Beniamine's avatar David Beniamine
Browse files

No need for from in clamav-weekly

parent 3f9f2e15
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
LOGFILE="/tmp/clamav-$(date +'%Y-%m-%d').log";
EMAIL_FROM="clamav-daily@tetras-libre.fr";
EMAIL_TO="root";
DIRTOSCAN="/var/www /home";
......@@ -12,7 +11,6 @@ do_sendmail(){
done < $LOGFILE
(echo "Subject: [NoCloud ClamAv] $subject";
echo "To: $EMAIL_TO";
echo "From: $EMAIL_FROM"
echo "Content-Type: text/plain; charset=UTF-8";
echo "";
echo -e "${message}") | sendmail -t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment