Update pve6_to_pve7.sh

This commit is contained in:
spiritLHLS 2023-02-15 11:49:10 +08:00 committed by GitHub
parent 65da905be5
commit 7997bc637c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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