Changeset View
Changeset View
Standalone View
Standalone View
pykolab/setup/setup_mta.py
Show First 20 Lines • Show All 466 Lines • ▼ Show 20 Lines | elif os.path.isfile('/usr/share/kolab/templates/freshclam.conf.tpl'): | ||||
shutil.copy( | shutil.copy( | ||||
'/usr/share/kolab/templates/freshclam.conf.tpl', | '/usr/share/kolab/templates/freshclam.conf.tpl', | ||||
'/etc/freshclam.conf' | '/etc/freshclam.conf' | ||||
) | ) | ||||
else: | else: | ||||
log.error(_("Could not find a ClamAV update configuration file")) | log.error(_("Could not find a ClamAV update configuration file")) | ||||
if os.path.isfile('/etc/freshclam.conf'): | if os.path.isfile('/etc/freshclam.conf'): | ||||
subprocess.call( | subprocess.call([ | ||||
'/usr/bin/freshclam', | '/usr/bin/freshclam', | ||||
'--quiet', | '--quiet', | ||||
'--datadir="/var/lib/clamav"' | '--datadir="/var/lib/clamav"' | ||||
) | ]) | ||||
amavisservice = 'amavisd.service' | amavisservice = 'amavisd.service' | ||||
clamavservice = 'clamd@amavisd.service' | clamavservice = 'clamd@amavisd.service' | ||||
if os.path.isfile('/usr/lib/systemd/system/amavis.service'): | if os.path.isfile('/usr/lib/systemd/system/amavis.service'): | ||||
amavisservice = 'amavis.service' | amavisservice = 'amavis.service' | ||||
if os.path.isfile('/usr/lib/systemd/system/clamd.service'): | if os.path.isfile('/usr/lib/systemd/system/clamd.service'): | ||||
clamavservice = 'clamd.service' | clamavservice = 'clamd.service' | ||||
Show All 36 Lines |