48 |
+templates2events("/etc/systemd/system-preset/49-koozali.preset", $event ); |
+templates2events("/etc/systemd/system-preset/49-koozali.preset", $event ); |
49 |
+templates2events("/etc/cron.daily/freshclam", $event ); |
+templates2events("/etc/cron.daily/freshclam", $event ); |
50 |
+templates2events("/etc/cron.d/clamav-update", $event ); |
+templates2events("/etc/cron.d/clamav-update", $event ); |
51 |
+safe_touch("root/etc/e-smith/templates/etc/cron.daily/freshclam"); |
+ |
52 |
+safe_touch("root/etc/e-smith/templates/etc/cron.d/clamav-update"); |
+safe_touch("root/etc/e-smith/templates/etc/cron.d/clamav-update"); |
53 |
event_link("systemd-default", $event, "88"); # updates all the service files etc |
event_link("systemd-default", $event, "88"); # updates all the service files etc |
54 |
event_link("systemd-reload", $event, "89"); # systemctl daemon-reload |
event_link("systemd-reload", $event, "89"); # systemctl daemon-reload |
188 |
[Install] |
[Install] |
189 |
-WantedBy=multi-user.target |
-WantedBy=multi-user.target |
190 |
+WantedBy=sme-server.target |
+WantedBy=sme-server.target |
191 |
|
diff -Nur smeserver-clamav-2.7.0.old/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam smeserver-clamav-2.7.0/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam |
192 |
|
--- smeserver-clamav-2.7.0.old/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam 1969-12-31 19:00:00.000000000 -0500 |
193 |
|
+++ smeserver-clamav-2.7.0/root/etc/e-smith/templates/etc/cron.daily/freshclam/10freshclam 2013-01-31 16:31:43.000000000 -0500 |
194 |
|
@@ -0,0 +1,4 @@ |
195 |
|
+#! /bin/sh |
196 |
|
+# We do not run freshclam here, because an always-running supervised freshclam |
197 |
|
+# is used in SME Server |
198 |
|
+exit 0 |