PVE Post Install: say so when it runs outside Proxmox VE

Without pveversion the version check ended in "command not found" (exit
127, 5 runs in four days, none with a PVE version).
This commit is contained in:
MickLesk
2026-11-28 14:16:01 +01:00
parent 44edad40f9
commit 84cd45c0c5

View File

@@ -88,6 +88,11 @@ main() {
esac
done
if ! command -v pveversion >/dev/null 2>&1; then
msg_error "This script runs on a Proxmox VE host, and pveversion is missing here"
exit 105
fi
local PVE_VERSION PVE_MAJOR PVE_MINOR
PVE_VERSION="$(get_pve_version)"
read -r PVE_MAJOR PVE_MINOR <<<"$(get_pve_major_minor "$PVE_VERSION")"