Update proxmox-zfs-postinstall.sh

This commit is contained in:
Marc-André Butz
2022-10-17 16:27:27 +02:00
committed by GitHub
parent ff4069519f
commit 8abeca080d

View File

@@ -165,6 +165,11 @@ 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
#Not tested, yet!
read -p "Do you want to disable pve-enterprise repo and add pve-no-subscription repo (y/n)? " response
if [ "$response" == "y" ]; then
if [[ "$(uname -r)" == *"-pve" ]]; then 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
@@ -175,6 +180,8 @@ if [[ "$(uname -r)" == *"-pve" ]]; then
fi fi
rm -f /etc/apt/sources.list.d/pve-no-subscription.list rm -f /etc/apt/sources.list.d/pve-no-subscription.list
fi fi
fi
echo "Getting latest package lists" echo "Getting latest package lists"
apt update > /dev/null 2>&1 apt update > /dev/null 2>&1