add our obs repo to cmdeploy init

This commit is contained in:
Christian Hagenest 2024-04-11 15:09:33 +02:00 committed by missytake
parent ecb5ef8a10
commit 616a42c8f3
2 changed files with 17 additions and 0 deletions

View File

@ -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"],