mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-25 17:55:01 +01:00
Update VMs
- The scripts will only work with PVE versions 7.4-13 or higher.
This commit is contained in:
parent
a1deedd066
commit
e0f8e23fd7
@ -92,9 +92,9 @@ function check_root() {
|
||||
}
|
||||
|
||||
function pve_check() {
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
|
@ -115,9 +115,9 @@ function check_root() {
|
||||
}
|
||||
|
||||
function pve_check() {
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
|
@ -62,9 +62,9 @@ function cleanup() {
|
||||
}
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
echo "⚠ This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo "Exiting..."
|
||||
sleep 3
|
||||
exit
|
||||
|
@ -91,9 +91,9 @@ function check_root() {
|
||||
}
|
||||
|
||||
function pve_check() {
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
|
@ -157,9 +157,9 @@ function msg_error() {
|
||||
}
|
||||
|
||||
function pve_check() {
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
|
@ -91,9 +91,9 @@ function check_root() {
|
||||
}
|
||||
|
||||
function pve_check() {
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
|
@ -84,9 +84,9 @@ else
|
||||
exit
|
||||
fi
|
||||
function PVE_CHECK() {
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
|
@ -92,9 +92,9 @@ function check_root() {
|
||||
}
|
||||
|
||||
function pve_check() {
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then
|
||||
if ! pveversion | grep -Eq "pve-manager/(7.4-[1][3-9]|8.1.[1-9])"; then
|
||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
||||
echo -e "Requires PVE Version 7.2 or higher"
|
||||
echo -e "Requires PVE Version 7.4-13 or higher"
|
||||
echo -e "Exiting..."
|
||||
sleep 2
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user