fixed install within class
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user