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)
|
||||
WOService.restart_service(self, 'redis-server')
|
||||
|
||||
# Redis configuration
|
||||
if set(["clamav"]).issubset(set(apt_packages)):
|
||||
# ClamAV configuration
|
||||
if set(WOVariables.wo_clamav).issubset(set(apt_packages)):
|
||||
Log.debug("Setting up freshclam cronjob")
|
||||
if not os.path.isfile("/opt/freshclam.sh"):
|
||||
WOTemplate.render(self, '/opt/freshclam.sh',
|
||||
'freshclam.mustache',
|
||||
data, overwrite=False)
|
||||
|
||||
Reference in New Issue
Block a user