From 856b1ad8ae46be5513d8721e227347657aa450cc Mon Sep 17 00:00:00 2001 From: Spitap Date: Tue, 5 Sep 2023 11:32:16 +0200 Subject: [PATCH] fix --- modoboa_installer/scripts/modoboa.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modoboa_installer/scripts/modoboa.py b/modoboa_installer/scripts/modoboa.py index 07ceb35e..6dca9a46 100644 --- a/modoboa_installer/scripts/modoboa.py +++ b/modoboa_installer/scripts/modoboa.py @@ -50,8 +50,8 @@ def __init__(self, *args, **kwargs): self.extensions = self.config.get("modoboa", "extensions").split() self.devmode = self.config.getboolean("modoboa", "devmode") # Sanity check for amavis and rspamd - self.amavis_enabled = sanity_check("modoboa-amavis", "amavis") - sanity_check("modoboa-rspamd", "rspamd") + self.amavis_enabled = self.sanity_check("modoboa-amavis", "amavis") + self.sanity_check("modoboa-rspamd", "rspamd") if "modoboa-radicale" in self.extensions: if not self.config.getboolean("radicale", "enabled"): @@ -60,7 +60,7 @@ def __init__(self, *args, **kwargs): self.opendkim_enabled = self.config.getboolean("opendkim", "enabled") self.dkim_cron_enabled = False - def sanity_check(extension, plugin): + def sanity_check(self, extension, plugin): # Sanity check for plugin requirements enabled = False if extension in self.extensions: