1 |
diff -Nur --no-dereference smeserver-clamav-2.7.0.old/root/sbin/e-smith/freshclam-update-failed smeserver-clamav-2.7.0/root/sbin/e-smith/freshclam-update-failed |
2 |
--- smeserver-clamav-2.7.0.old/root/sbin/e-smith/freshclam-update-failed 2020-12-02 11:37:01.000000000 -0500 |
3 |
+++ smeserver-clamav-2.7.0/root/sbin/e-smith/freshclam-update-failed 2021-11-15 13:18:27.887000000 -0500 |
4 |
@@ -17,10 +17,13 @@ |
5 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
6 |
#---------------------------------------------------------------------- |
7 |
|
8 |
+ServerHostName=$(/sbin/e-smith/db configuration get SystemName) |
9 |
+DomainName=$(/sbin/e-smith/db configuration get DomainName) |
10 |
+ |
11 |
/usr/bin/tac /var/log/freshclam/current | \ |
12 |
/bin/sed -n '/Downloading/d;1,/process started/p;/process started/q' | \ |
13 |
/usr/bin/tac | \ |
14 |
/usr/local/bin/tai64nlocal | \ |
15 |
- /bin/mail -s 'freshclam: Update failed' admin |
16 |
+ /bin/mail -s "freshclam: Update failed on $ServerHostName.$DomainName" admin |
17 |
|
18 |
exit 0 |