diff --git a/ct/proxmox-mail-gateway.sh b/ct/proxmox-mail-gateway.sh index c8bd56772..dcee1949a 100644 --- a/ct/proxmox-mail-gateway.sh +++ b/ct/proxmox-mail-gateway.sh @@ -27,10 +27,11 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Updating ${APP}" + + msg_info "Updating Proxmox-Mail-Gateway" $STD apt update - $STD apt -y upgrade - msg_ok "Updated ${APP}" + $STD apt upgrade -y + msg_ok "Updated Proxmox-Mail-Gateway" msg_ok "Updated successfully!" exit } diff --git a/install/proxmox-mail-gateway-install.sh b/install/proxmox-mail-gateway-install.sh index 7ec302d7e..8a02a409f 100644 --- a/install/proxmox-mail-gateway-install.sh +++ b/install/proxmox-mail-gateway-install.sh @@ -14,16 +14,13 @@ network_check update_os msg_info "Installing Proxmox Mail Gateway" -curl -fsSL "https://enterprise.proxmox.com/debian/proxmox-release-trixie.gpg" -o "/usr/share/keyrings/proxmox-release-trixie.gpg" -cat </etc/apt/sources.list.d/pmg.sources -Types: deb -URIs: http://download.proxmox.com/debian/pmg -Suites: trixie -Components: pmg-no-subscription -Signed-By: /usr/share/keyrings/proxmox-release-trixie.gpg -EOF -$STD apt update -$STD apt -y install proxmox-mailgateway-container +setup_deb822_repo \ + "pmg" \ + "https://enterprise.proxmox.com/debian/proxmox-release-trixie.gpg" \ + "http://download.proxmox.com/debian/pmg" \ + "trixie" \ + "pmg-no-subscription" +$STD apt install -y proxmox-mailgateway-container msg_ok "Installed Proxmox Mail Gateway" motd_ssh