Files
modoboa-installer/modoboa_installer/scripts/clamav.py
Antoine Nguyen 84fe9b0d16 Initial commit.
2015-10-14 17:27:01 +02:00

24 lines
502 B
Python

"""ClamAV related tools."""
from .. import utils
from .. import system
from . import base
class Clamav(base.Installer):
"""ClamAV installer."""
appname = "clamav"
daemon_name = "clamav-daemon"
packages = ["clamav-daemon"]
def post_run(self):
"""Additional tasks."""
user = self.config.get(self.appname, "user")
system.add_user_to_group(
user, self.config.get("amavis", "user")
)
utils.exec_cmd("freshclam", sudo_user=user)