lint: fix 3 issues

This commit is contained in:
missytake
2023-12-26 09:58:47 +01:00
committed by link2xt
parent 1b15ec0eae
commit 17a919ee53

View File

@@ -384,11 +384,7 @@ def remove_opendkim() -> bool:
present=False, present=False,
) )
apt.packages( apt.packages(name="Remove openDKIM", packages="opendkim", present=False)
name="Remove openDKIM",
packages="opendkim",
present=False
)
return False return False
@@ -460,7 +456,9 @@ def _configure_rspamd(dkim_selector: str, mail_domain: str) -> bool:
dkim_key_path = f"{dkim_directory}{mail_domain}.{dkim_selector}.key" dkim_key_path = f"{dkim_directory}{mail_domain}.{dkim_selector}.key"
dkim_config = files.template( dkim_config = files.template(
src=importlib.resources.files(__package__).joinpath("rspamd/dkim_signing.conf.j2"), src=importlib.resources.files(__package__).joinpath(
"rspamd/dkim_signing.conf.j2"
),
dest="/etc/rspamd/local.d/dkim_signing.conf", dest="/etc/rspamd/local.d/dkim_signing.conf",
user="root", user="root",
group="root", group="root",
@@ -631,7 +629,6 @@ def deploy_chatmail(config_path: Path) -> None:
restarted=rspamd_need_restart, restarted=rspamd_need_restart,
) )
systemd.service( systemd.service(
name="Start and enable MTA-STS daemon", name="Start and enable MTA-STS daemon",
service="mta-sts-daemon.service", service="mta-sts-daemon.service",