Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfireap committed Sep 5, 2023
1 parent 3950f3d commit 856b1ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modoboa_installer/scripts/modoboa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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:
Expand Down

0 comments on commit 856b1ad

Please sign in to comment.