mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-05 08:25:59 +00:00
PMG: migrate post-install to deb822 format, fix APT source conflicts
- Simplify PMG detection to dpkg-based check only - Extend repo_state() to scan .sources files (deb822 format) - Add toggle_repo() helper for enable/disable on both formats - Migrate Debian sources correction to deb822 (debian.sources) - Migrate pmg-enterprise, pmg-no-subscription, pmgtest repo creation to deb822 .sources files - Install script: clean up duplicate APT sources created by proxmox-mailgateway-container package (enterprise.list, pmg-install-repo.list, legacy sources.list)
This commit is contained in:
@@ -21,6 +21,13 @@ setup_deb822_repo \
|
||||
"trixie" \
|
||||
"pmg-no-subscription"
|
||||
$STD apt install -y proxmox-mailgateway-container
|
||||
|
||||
msg_info "Cleaning up duplicate APT sources"
|
||||
rm -f /etc/apt/sources.list.d/pmg-enterprise.list
|
||||
rm -f /etc/apt/sources.list.d/pmg-install-repo.list
|
||||
[[ -f /etc/apt/sources.list.d/debian.sources ]] && : >/etc/apt/sources.list
|
||||
msg_ok "Cleaned up duplicate APT sources"
|
||||
|
||||
msg_ok "Installed Proxmox Mail Gateway"
|
||||
|
||||
motd_ssh
|
||||
|
||||
Reference in New Issue
Block a user