mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-12-04 05:48:11 +01:00
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:
1 parent
44edad40f9
commit
84cd45c0c5
1 file changed
+5
@@ -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")"
|
||||
|
||||
Reference in new issue
Block a user