mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-11-07 18:31:58 +01:00
Moved pve-no-subscription list to sources.list
This commit is contained in:
parent
68e85b8ecd
commit
3ca96f6f35
@ -169,7 +169,11 @@ if [[ "$(uname -r)" == *"-pve" ]]; then
|
|||||||
echo "Deactivating pve-enterprise repository"
|
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
|
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 "Activating pve-no-subscription repository"
|
||||||
echo "deb http://download.proxmox.com/debian/pve $VERSION_CODENAME pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
|
q=$(cat /etc/apt/sources.list | grep "pve-no-subscription")
|
||||||
|
if [ $? -gt 0 ]; then
|
||||||
|
echo "deb http://download.proxmox.com/debian/pve $VERSION_CODENAME pve-no-subscription" >> /etc/apt/sources.list
|
||||||
|
fi
|
||||||
|
rm -f /etc/apt/sources.list.d/pve-no-subscription.list
|
||||||
fi
|
fi
|
||||||
echo "Getting latest package lists"
|
echo "Getting latest package lists"
|
||||||
apt update > /dev/null 2>&1
|
apt update > /dev/null 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user