Another fix for clamav
This commit is contained in:
@@ -1163,9 +1163,10 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
'redis', 'redis', recursive=False)
|
'redis', 'redis', recursive=False)
|
||||||
WOService.restart_service(self, 'redis-server')
|
WOService.restart_service(self, 'redis-server')
|
||||||
|
|
||||||
# Redis configuration
|
# ClamAV configuration
|
||||||
if set(["clamav"]).issubset(set(apt_packages)):
|
if set(WOVariables.wo_clamav).issubset(set(apt_packages)):
|
||||||
Log.debug("Setting up freshclam cronjob")
|
Log.debug("Setting up freshclam cronjob")
|
||||||
|
if not os.path.isfile("/opt/freshclam.sh"):
|
||||||
WOTemplate.render(self, '/opt/freshclam.sh',
|
WOTemplate.render(self, '/opt/freshclam.sh',
|
||||||
'freshclam.mustache',
|
'freshclam.mustache',
|
||||||
data, overwrite=False)
|
data, overwrite=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user