d/postinst: setup pvetest repo for beta

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-06-23 22:25:09 +02:00
parent 383b901ab5
commit 6e3ca3d351

7
debian/postinst vendored
View File

@ -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