improve pversion check
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
This commit is contained in:
parent
e97a1ec944
commit
acbaa7ce7d
@ -28,11 +28,10 @@ variables() {
|
||||
METHOD="default" # sets the METHOD variable to "default", used for the API call.
|
||||
RANDOM_UUID="$(cat /proc/sys/kernel/random/uuid)" # generates a random UUID and sets it to the RANDOM_UUID variable.
|
||||
CTTYPE="${CTTYPE:-${CT_TYPE:-1}}"
|
||||
#CT_TYPE=${var_unprivileged:-$CT_TYPE}
|
||||
|
||||
# Get Proxmox VE version and kernel version
|
||||
if command -v pveversion >/dev/null 2>&1; then
|
||||
PVEVERSION=$(pveversion | grep "pve-manager" | awk '{print $2}' | cut -d'/' -f1)
|
||||
PVEVERSION="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||
else
|
||||
PVEVERSION="N/A"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user