greeterbot: port to chatmail

This commit is contained in:
missytake
2024-01-12 15:41:13 +01:00
parent 75b41641f0
commit 3db7933d8b
9 changed files with 151 additions and 3 deletions

View File

@@ -101,11 +101,13 @@ def _install_remote_venv_with_chatmaild(config) -> None:
"doveauth",
"filtermail",
"echobot",
"greeterbot",
):
params = dict(
execpath=f"{remote_venv_dir}/bin/{fn}",
config_path=remote_chatmail_inipath,
remote_venv_dir=remote_venv_dir,
passdb_path="/home/vmail/passdb.sqlite",
)
source_path = importlib.resources.files("chatmaild").joinpath(f"{fn}.service.f")
content = source_path.read_text().format(**params).encode()