From 6eba30b5a29fa00f5a219e37dee122b978ff441b Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Wed, 7 Jul 2021 00:38:10 +0200 Subject: [PATCH] Added PVE7 Support OS Codename read from `/etc/os-release` and pve-no-subscription will be set on that base. --- proxmox-zfs-postinstall.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxmox-zfs-postinstall.sh b/proxmox-zfs-postinstall.sh index 27185cc..7f6e807 100644 --- a/proxmox-zfs-postinstall.sh +++ b/proxmox-zfs-postinstall.sh @@ -14,6 +14,8 @@ PVE_CONF_BACKUP_TARGET=rpool/pveconf # Define timer for your backup cronjob (default: every 15 minutes fron 3 through 59) PVE_CONF_BACKUP_CRON_TIMER="3,18,33,48 * * * *" +# Get Debian version info +source /etc/os-release ###### SYSTEM INFO AND INTERACTIVE CONFIGURATION SECTION ###### @@ -167,7 +169,7 @@ if [[ "$(uname -r)" == *"-pve" ]]; then echo "Deactivating pve-enterprise repository" mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak > /dev/null 2>&1 echo "Activating pve-no-subscription repository" - echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list + echo "deb http://download.proxmox.com/debian/pve $VERSION_CODENAME pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list fi echo "Getting latest package lists" apt update > /dev/null 2>&1