fixed install within class

This commit is contained in:
Spitap
2022-07-26 16:39:41 +02:00
parent 4a00590354
commit e7b6104195
2 changed files with 3 additions and 3 deletions

View File

@@ -104,5 +104,5 @@ class Amavis(base.Installer):
def post_run(self): def post_run(self):
"""Additional tasks.""" """Additional tasks."""
install("spamassassin", self.config, self.upgrade) install("spamassassin", self.config, self.upgrade, self.restore)
install("clamav", self.config, self.upgrade) install("clamav", self.config, self.upgrade, self.restore)

View File

@@ -69,7 +69,7 @@ class Spamassassin(base.Installer):
"pyzor --homedir {} discover".format(pw[5]), "pyzor --homedir {} discover".format(pw[5]),
sudo_user=amavis_user, login=False sudo_user=amavis_user, login=False
) )
install("razor", self.config, self.upgrade) install("razor", self.config, self.upgrade, self.restore)
if utils.dist_name() in ["debian", "ubuntu"]: if utils.dist_name() in ["debian", "ubuntu"]:
utils.exec_cmd( utils.exec_cmd(
"perl -pi -e 's/^CRON=0/CRON=1/' /etc/cron.daily/spamassassin") "perl -pi -e 's/^CRON=0/CRON=1/' /etc/cron.daily/spamassassin")