mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-25 17:50:13 +01:00
Update proxmox-zfs-postinstall.sh
This commit is contained in:
parent
ff4069519f
commit
8abeca080d
@ -165,16 +165,23 @@ fi
|
|||||||
###### INSTALLER SECTION ######
|
###### INSTALLER SECTION ######
|
||||||
|
|
||||||
# disable pve-enterprise repo and add pve-no-subscription repo
|
# disable pve-enterprise repo and add pve-no-subscription repo
|
||||||
if [[ "$(uname -r)" == *"-pve" ]]; then
|
|
||||||
echo "Deactivating pve-enterprise repository"
|
#Not tested, yet!
|
||||||
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak > /dev/null 2>&1
|
read -p "Do you want to disable pve-enterprise repo and add pve-no-subscription repo (y/n)? " response
|
||||||
echo "Activating pve-no-subscription repository"
|
|
||||||
q=$(cat /etc/apt/sources.list | grep "pve-no-subscription")
|
if [ "$response" == "y" ]; then
|
||||||
if [ $? -gt 0 ]; then
|
if [[ "$(uname -r)" == *"-pve" ]]; then
|
||||||
echo "deb http://download.proxmox.com/debian/pve $VERSION_CODENAME pve-no-subscription" >> /etc/apt/sources.list
|
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"
|
||||||
|
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
|
||||||
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