From 7997bc637c39a0c001a50920d5568f3524320ac0 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:49:10 +0800 Subject: [PATCH] Update pve6_to_pve7.sh --- pve6_to_pve7.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pve6_to_pve7.sh b/pve6_to_pve7.sh index 616eb57..2329bcc 100644 --- a/pve6_to_pve7.sh +++ b/pve6_to_pve7.sh @@ -8,6 +8,9 @@ _green() { echo -e "\033[32m\033[01m$@\033[0m"; } _yellow() { echo -e "\033[33m\033[01m$@\033[0m"; } _blue() { echo -e "\033[36m\033[01m$@\033[0m"; } +# 删除企业源 +rm -rf /etc/apt/sources.list.d/pve-enterprise.list + # 检测是否可升级 output=$(pve6to7) if echo "$output" | grep -q "FAILURES: 0" > /dev/null 2>&1; then @@ -18,7 +21,6 @@ else exit 1 fi - # 升级PVE7 apt update && apt dist-upgrade -y