Cleaning code

This commit is contained in:
Spitap
2023-08-29 20:41:01 +02:00
parent 0b0e2a4e6a
commit 35fa19e47d
2 changed files with 7 additions and 11 deletions

View File

@@ -228,16 +228,7 @@ class Modoboa(base.Installer):
config_files.append(path)
# Add worker for dkim if needed
modoboa_version = python.get_package_version(
"modoboa",
self.venv_path,
sudo_user=self.user
)
condition = (
(modoboa_version[0] == 2 and modoboa_version[1] >= 2) or
modoboa_version[0] > 2
)
if condition:
if self.modoboa_2_2_or_greater:
config_files.append(
"supervisor-rq=/etc/supervisor/conf.d/modoboa-worker.conf")
return config_files