mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-25 01:30:12 +01:00
Merge pull request #13 from MAButz/main
Update proxmox-zfs-postinstall.sh
This commit is contained in:
commit
5fc25a4237
@ -165,6 +165,11 @@ fi
|
||||
###### INSTALLER SECTION ######
|
||||
|
||||
# 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
|
||||
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
|
||||
@ -175,6 +180,8 @@ if [[ "$(uname -r)" == *"-pve" ]]; then
|
||||
fi
|
||||
rm -f /etc/apt/sources.list.d/pve-no-subscription.list
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Getting latest package lists"
|
||||
apt update > /dev/null 2>&1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user