From 6e3ca3d3518318520d5610c4372f6c236f9f3a53 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 23 Jun 2021 22:25:09 +0200 Subject: [PATCH] d/postinst: setup pvetest repo for beta Signed-off-by: Thomas Lamprecht --- debian/postinst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/postinst b/debian/postinst index 0f6296c3..c4328dfe 100755 --- a/debian/postinst +++ b/debian/postinst @@ -120,6 +120,13 @@ case "$1" in fi done + # FIXME: remove after beta is over and add hunk to actively remove the repo + BETA_SOURCES="/etc/apt/sources.list.d/pvetest-for-beta.list" + if ! test -f "$BETA_SOURCES"; then + echo "Adding pvetest repo to '$BETA_SOURCES' to enable updates during Proxmox VE 7.0 beta" + echo "deb http://download.proxmox.com/debian/pve bullseye pvetest" | tee "$BETA_SOURCES" + fi + # FIXME: remove in PVE 8.0 if test ! -e /proxmox_install_mode && test -n "$2" && dpkg --compare-versions "$2" 'lt' '7~'; then # PVE 4.0 beta to 5.4 ISO had a bug and did not generated a unique machine-id. below is a