mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
Move systemd unit templates to cmdeploy
They are part of deployment rather than service itself. Different deployments may have different users, filesystem layout etc.
This commit is contained in:
@@ -110,7 +110,9 @@ def _install_remote_venv_with_chatmaild(config) -> None:
|
|||||||
remote_venv_dir=remote_venv_dir,
|
remote_venv_dir=remote_venv_dir,
|
||||||
mail_domain=config.mail_domain,
|
mail_domain=config.mail_domain,
|
||||||
)
|
)
|
||||||
source_path = importlib.resources.files("chatmaild").joinpath(f"{fn}.service.f")
|
source_path = importlib.resources.files(__package__).joinpath(
|
||||||
|
"service", f"{fn}.service.f"
|
||||||
|
)
|
||||||
content = source_path.read_text().format(**params).encode()
|
content = source_path.read_text().format(**params).encode()
|
||||||
|
|
||||||
files.put(
|
files.put(
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Chatmail Postfix BeforeQeue filter
|
Description=Chatmail Postfix before queue filter
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart={execpath} {config_path}
|
ExecStart={execpath} {config_path}
|
||||||
Reference in New Issue
Block a user