dovecot: download deb for correct arch

This commit is contained in:
missytake
2025-06-29 09:55:55 +02:00
parent 68904f8f61
commit 387532cfca

View File

@@ -676,6 +676,12 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None:
) )
arch = host.get_fact(facts.server.Arch) arch = host.get_fact(facts.server.Arch)
if "x86_64" in arch:
arch = "amd64"
elif "aarch64" in arch:
arch = "arm64"
else:
print(arch)
apt.deb( apt.deb(
name="Install Dovecot", name="Install Dovecot",
src=f"https://download.delta.chat/dovecot/dovecot-imapd_2.3.21%2Bdfsg1-3_{arch}.deb", src=f"https://download.delta.chat/dovecot/dovecot-imapd_2.3.21%2Bdfsg1-3_{arch}.deb",