From 8adb580702ebee7317f357b2af7c2177cdc42dc3 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Thu, 5 Nov 2026 12:57:42 +0100 Subject: [PATCH] fix(proxmox-mail-gateway): take the repo suite from the container The install hardcoded trixie, so a Debian 12 container got the PMG 9 repository and pmg-api could not resolve its trixie dependencies (held broken packages). Suite and key now follow the container's codename; bookworm still has PMG 8 with proxmox-mailgateway-container. --- install/proxmox-mail-gateway-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/proxmox-mail-gateway-install.sh b/install/proxmox-mail-gateway-install.sh index dfd0b5236..e53b99e8a 100644 --- a/install/proxmox-mail-gateway-install.sh +++ b/install/proxmox-mail-gateway-install.sh @@ -14,11 +14,12 @@ network_check update_os msg_info "Installing Proxmox Mail Gateway" +CODENAME="$(get_os_info codename)" setup_deb822_repo \ "pmg" \ - "https://enterprise.proxmox.com/debian/proxmox-release-trixie.gpg" \ + "https://enterprise.proxmox.com/debian/proxmox-release-${CODENAME}.gpg" \ "http://download.proxmox.com/debian/pmg" \ - "trixie" \ + "${CODENAME}" \ "pmg-no-subscription" $STD apt install -y proxmox-mailgateway-container msg_ok "Installed Proxmox Mail Gateway"