@@ -57,12 +57,6 @@ class Spamassassin(base.Installer):
|
|||||||
|
|
||||||
def post_run(self):
|
def post_run(self):
|
||||||
"""Additional tasks."""
|
"""Additional tasks."""
|
||||||
amavis_user = self.config.get("amavis", "user")
|
|
||||||
pw = pwd.getpwnam(amavis_user)
|
|
||||||
utils.exec_cmd(
|
|
||||||
"pyzor --homedir {} discover".format(pw[5]),
|
|
||||||
sudo_user=amavis_user, login=False
|
|
||||||
)
|
|
||||||
install("razor", self.config, self.upgrade, self.restore)
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user