diff --git a/cmdeploy/src/cmdeploy/__init__.py b/cmdeploy/src/cmdeploy/__init__.py index cae7885..d09e1a7 100644 --- a/cmdeploy/src/cmdeploy/__init__.py +++ b/cmdeploy/src/cmdeploy/__init__.py @@ -522,6 +522,23 @@ def deploy_chatmail(config_path: Path) -> None: packages="postfix", ) + # Add our OBS repository for dovecot_no_delay + files.put( + name = "Add Deltachat OBS GPG key to apt keyring", + src = importlib.resources.files(__package__).joinpath("obs-home-deltachat.gpg"), + dest = "/etc/apt/keyrings/obs-home-deltachat.gpg", + user="root", + group="root", + mode="644", + ) + + files.line( + name = "Add DeltaChat OBS home repository to sources.list", + path = "/etc/apt/sources.list", + line = "deb [signed-by=/etc/apt/keyrings/obs-home-deltachat.gpg] https://download.opensuse.org/repositories/home:/deltachat/Debian_12/ ./", + ensure_newline = True, + ) + apt.packages( name="Install Dovecot", packages=["dovecot-imapd", "dovecot-lmtpd", "dovecot-sieve"], diff --git a/cmdeploy/src/cmdeploy/obs-home-deltachat.gpg b/cmdeploy/src/cmdeploy/obs-home-deltachat.gpg new file mode 100644 index 0000000..e69de29