Add configuring freshclam

Authored by vanmeeuwen on Sep 30 2016, 1:58 PM.

Description

Add configuring freshclam

Details

Committed
vanmeeuwenSep 30 2016, 1:58 PM
Pushed
vanmeeuwenSep 30 2016, 2:02 PM
Parents
rP9d70f9d837c5: The defaults need to be more strict
Branches
Unknown
Tags
Unknown

this does not seem to work: during setup-kolab, I get:

[00:20:38] Kolab Service password [ELBlwRfG_laVziZ]: 
[00:20:46] Traceback (most recent call last):
[00:20:46]   File "/usr/sbin/setup-kolab", line 43, in <module>
[00:20:46]     setup.run()
[00:20:46]   File "/usr/lib/python2.7/site-packages/pykolab/setup/__init__.py", line 74, in run
[00:20:46]     components.execute('_'.join(to_execute))
[00:20:46]   File "/usr/lib/python2.7/site-packages/pykolab/setup/components.py", line 170, in execute
[00:20:46]     execute(component)
[00:20:46]   File "/usr/lib/python2.7/site-packages/pykolab/setup/components.py", line 202, in execute
[00:20:46]     components[component_name]['function'](conf.cli_args, kw)
[00:20:46]   File "/usr/lib/python2.7/site-packages/pykolab/setup/setup_mta.py", line 478, in execute
[00:20:46]     '--datadir="/var/lib/clamav"'
[00:20:46]   File "/usr/lib64/python2.7/subprocess.py", line 524, in call
[00:20:46]     return Popen(*popenargs, **kwargs).wait()
[00:20:46]   File "/usr/lib64/python2.7/subprocess.py", line 660, in __init__
[00:20:46]     raise TypeError("bufsize must be an integer")
[00:20:46] TypeError: bufsize must be an integer

please change to:

subprocess.call(
        ['/usr/bin/freshclam',
        '--quiet',
        '--datadir="/var/lib/clamav"']
    )