Removed call to deprecated discover command

fix #403
This commit is contained in:
Antoine Nguyen
2023-01-13 12:05:03 +01:00
parent a647edf5a5
commit 7877de1abc

View File

@@ -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(