summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-10-05 09:40:39 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-10-05 09:40:39 +0200
commitec80886e7ff71613b5c48d01168e008351a05e00 (patch)
treee671e76f1a33b063f1127a43c4eee18e041072d0
parentf30c587b80fdc2a93f0bac0d77a57624c5b13184 (diff)
downloadpykolab-ec80886e7ff71613b5c48d01168e008351a05e00.tar.gz
subprocess call for freshclam needs to use collection for the parameters
Summary: fix compiler error: TypeError: bufsize must be an integer Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: #pykolab_developers Tags: #pykolab Differential Revision: https://git.kolab.org/D238
-rw-r--r--pykolab/setup/setup_mta.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 00acbec..8c73ac8 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -472,11 +472,11 @@ result_format = "shared+%%s"
log.error(_("Could not find a ClamAV update configuration file"))
if os.path.isfile('/etc/freshclam.conf'):
- subprocess.call(
+ subprocess.call([
'/usr/bin/freshclam',
'--quiet',
'--datadir="/var/lib/clamav"'
- )
+ ])
amavisservice = 'amavisd.service'
clamavservice = 'clamd@amavisd.service'