1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-failed mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-failed |
2 |
--- smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-failed 2007-02-12 11:50:36.000000000 -0700 |
3 |
+++ mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-failed 2007-02-12 11:49:42.000000000 -0700 |
4 |
@@ -17,7 +17,7 @@ |
5 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
6 |
#---------------------------------------------------------------------- |
7 |
|
8 |
-tail -200 /var/log/freshclam/current | sed -n '${x;p};/freshclam daemon/{h;b};H' | tai64nlocal | \ |
9 |
+tail -200 /var/log/freshclam/current | sed -n '${/---/bz;H;:z;x;p};:r;/---/{n;/---/br;h;b};H' | tai64nlocal | \ |
10 |
mail -s 'freshclam: Update failed' admin |
11 |
|
12 |
exit 0 |
13 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-ok mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-ok |
14 |
--- smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-ok 2007-02-12 11:50:36.000000000 -0700 |
15 |
+++ mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-ok 2007-02-12 11:49:31.000000000 -0700 |
16 |
@@ -17,7 +17,7 @@ |
17 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 |
#---------------------------------------------------------------------- |
19 |
|
20 |
-#tail -200 /var/log/freshclam/current | sed -n '${x;p};/freshclam daemon/{h;b};H' | tai64nlocal | \ |
21 |
+#tail -200 /var/log/freshclam/current | sed -n '${/---/bz;H;:z;x;p};:r;/---/{n;/---/br;h;b};H' | tai64nlocal | \ |
22 |
# mail -s 'freshclam: Virus patterns updated' admin |
23 |
|
24 |
exit 0 |