mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-11-15 04:27:44 +08:00
Update pve6_to_pve7.sh
This commit is contained in:
parent
65da905be5
commit
7997bc637c
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,9 @@ _green() { echo -e "\033[32m\033[01m$@\033[0m"; }
|
||||||
_yellow() { echo -e "\033[33m\033[01m$@\033[0m"; }
|
_yellow() { echo -e "\033[33m\033[01m$@\033[0m"; }
|
||||||
_blue() { echo -e "\033[36m\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)
|
output=$(pve6to7)
|
||||||
if echo "$output" | grep -q "FAILURES: 0" > /dev/null 2>&1; then
|
if echo "$output" | grep -q "FAILURES: 0" > /dev/null 2>&1; then
|
||||||
|
@ -18,7 +21,6 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# 升级PVE7
|
# 升级PVE7
|
||||||
apt update && apt dist-upgrade -y
|
apt update && apt dist-upgrade -y
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue