From 616a42c8f3d4a640e13a67996d3cf857ce95daa9 Mon Sep 17 00:00:00 2001 From: Christian Hagenest Date: Thu, 11 Apr 2024 15:09:33 +0200 Subject: [PATCH] add our obs repo to cmdeploy init --- cmdeploy/src/cmdeploy/__init__.py | 17 +++++++++++++++++ cmdeploy/src/cmdeploy/obs-home-deltachat.gpg | 0 2 files changed, 17 insertions(+) create mode 100644 cmdeploy/src/cmdeploy/obs-home-deltachat.gpg 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