1 |
diff -ruN smeserver-spamassassin-2.4.0.old/root/usr/bin/refreshclam smeserver-spamassassin-2.4.0/root/usr/bin/refreshclam |
2 |
--- smeserver-spamassassin-2.4.0.old/root/usr/bin/refreshclam 1969-12-31 16:00:00.000000000 -0800 |
3 |
+++ smeserver-spamassassin-2.4.0/root/usr/bin/refreshclam 2014-01-02 20:48:51.000000000 -0800 |
4 |
@@ -0,0 +1,24 @@ |
5 |
+#!/bin/bash |
6 |
+ |
7 |
+#Stop qpsmtpd/sqpsmtpd: |
8 |
+/usr/local/bin/svc -d /service/qpsmtpd/ |
9 |
+/usr/local/bin/svc -d /service/sqpsmtpd/ |
10 |
+ |
11 |
+#Stop freshclam/clamd: |
12 |
+/usr/local/bin/svc -d /service/freshclam/ |
13 |
+/usr/local/bin/svc -d /service/clamd/ |
14 |
+ |
15 |
+#Delete all: |
16 |
+/bin/rm -f /var/clamav/* |
17 |
+ |
18 |
+#Update clamAV database |
19 |
+/usr/bin/freshclam -v |
20 |
+ |
21 |
+#Restart freshclam/clamd |
22 |
+/usr/local/bin/svc -u /service/freshclam/ |
23 |
+/usr/local/bin/svc -u /service/clamd/ |
24 |
+ |
25 |
+#Restart qpsmtpd/sqpsmtpd |
26 |
+/usr/local/bin/svc -u /service/qpsmtpd/ |
27 |
+/usr/local/bin/svc -u /service/sqpsmtpd/ |
28 |
+ |