App incompatibility detection, updated for 2.2.0

This commit is contained in:
Spitap
2023-09-06 12:46:20 +02:00
committed by Antoine Nguyen
parent df23f4e181
commit 70e9cffd87
7 changed files with 40 additions and 8 deletions

View File

@@ -60,8 +60,7 @@ class Rspamd(base.Installer):
def install_config_files(self):
"""Make sure config directory exists."""
user = self.config.get("modoboa", "user")
pw = pwd.getpwnam(user)
pw = pwd.getpwnam("_rspamd")
targets = [
[self.app_config["dkim_keys_storage_dir"], pw[2], pw[3]]
]