1 |
slords |
1.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-13 09:07:16.000000000 -0700 |
3 |
|
|
+++ mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-failed 2007-02-13 09:06:15.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 '${/---/bz;H;:z;x;p};:r;/---/{n;/---/br;h;b};H' | tai64nlocal | \ |
9 |
|
|
+tac /var/log/freshclam/current | sed -n '1,/---/p' | tac | tai64nlocal | sed '/---/d;s/\.[0-9]\{9\}//' \ |
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-13 09:07:16.000000000 -0700 |
15 |
|
|
+++ mezzanine_patched_smeserver-clamav-1.2.0/root/sbin/e-smith/freshclam-update-ok 2007-02-13 09:07:01.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 '${/---/bz;H;:z;x;p};:r;/---/{n;/---/br;h;b};H' | tai64nlocal | \ |
21 |
|
|
+#tac /var/log/freshclam/current | sed -n '1,/---/p' | tac | tai64nlocal | sed '/---/d;s/\.[0-9]\{9\}//' \ |
22 |
|
|
# mail -s 'freshclam: Virus patterns updated' admin |
23 |
|
|
|
24 |
|
|
exit 0 |