mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 12:28:06 +00:00
MTA-STS: fixing lint issues
This commit is contained in:
@@ -138,7 +138,9 @@ def _install_mta_sts_daemon() -> bool:
|
|||||||
|
|
||||||
config = files.put(
|
config = files.put(
|
||||||
name="upload postfix-mta-sts-resolver config",
|
name="upload postfix-mta-sts-resolver config",
|
||||||
src=importlib.resources.files(__package__).joinpath("postfix/mta-sts-daemon.yml"),
|
src=importlib.resources.files(__package__).joinpath(
|
||||||
|
"postfix/mta-sts-daemon.yml"
|
||||||
|
),
|
||||||
dest="/etc/mta-sts-daemon.yml",
|
dest="/etc/mta-sts-daemon.yml",
|
||||||
user="root",
|
user="root",
|
||||||
group="root",
|
group="root",
|
||||||
@@ -148,13 +150,17 @@ def _install_mta_sts_daemon() -> bool:
|
|||||||
|
|
||||||
server.shell(
|
server.shell(
|
||||||
name="install postfix-mta-sts-resolver with pip",
|
name="install postfix-mta-sts-resolver with pip",
|
||||||
commands=["python3 -m venv /var/lib/postfix-mta-sts-resolver",
|
commands=[
|
||||||
"/var/lib/postfix-mta-sts-resolver/bin/pip install postfix-mta-sts-resolver"],
|
"python3 -m venv /var/lib/postfix-mta-sts-resolver",
|
||||||
|
"/var/lib/postfix-mta-sts-resolver/bin/pip install postfix-mta-sts-resolver",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
systemd_unit = files.put(
|
systemd_unit = files.put(
|
||||||
name="upload mta-sts-daemon systemd unit",
|
name="upload mta-sts-daemon systemd unit",
|
||||||
src=importlib.resources.files(__package__).joinpath("postfix/mta-sts-daemon.service"),
|
src=importlib.resources.files(__package__).joinpath(
|
||||||
|
"postfix/mta-sts-daemon.service"
|
||||||
|
),
|
||||||
dest="/etc/systemd/system/mta-sts-daemon.service",
|
dest="/etc/systemd/system/mta-sts-daemon.service",
|
||||||
user="root",
|
user="root",
|
||||||
group="root",
|
group="root",
|
||||||
|
|||||||
Reference in New Issue
Block a user