/[smeserver]/rpms/smeserver-clamav/sme10/smeserver-clamav-2.7.0-bz11755-identify-freshclam-error.patch
ViewVC logotype

Contents of /rpms/smeserver-clamav/sme10/smeserver-clamav-2.7.0-bz11755-identify-freshclam-error.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Nov 15 18:20:55 2021 UTC (2 years, 11 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-clamav-2_7_0-16_el7_sme, smeserver-clamav-2_7_0-15_el7_sme, smeserver-clamav-2_7_0-10_el7_sme, smeserver-clamav-2_7_0-12_el7_sme, smeserver-clamav-2_7_0-11_el7_sme, smeserver-clamav-2_7_0-14_el7_sme, smeserver-clamav-2_7_0-13_el7_sme, HEAD
* Mon Nov 15 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.7.0-10.sme
- identify from which server is freshclam error [SME: 11755]
  fix from  Graeme Fleming

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed