From 55f05fe0b96ad9a2ca2ad183f88a719b51a37fe7 Mon Sep 17 00:00:00 2001 From: sharky Date: Sun, 4 Oct 2026 17:14:00 +0200 Subject: [PATCH] V13 --- updater.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/updater.sh b/updater.sh index def32ff..ba1d405 100644 --- a/updater.sh +++ b/updater.sh @@ -792,6 +792,19 @@ update_vm() { return fi + # Windows-VMs bereits anhand der Proxmox-Konfiguration erkennen. + # Sie dürfen insbesondere nicht nur für den Linux-Updater gestartet werden. + local ostype + ostype="$(qm config "$id" 2>/dev/null | sed -nE 's/^ostype:[[:space:]]*//p' | head -n1)" + + case "$ostype" in + win10|win11|win7|win8|wvista|wxp|w2k|w2k3|w2k8) + log "VM $id ($name): Windows-VM -> übersprungen." + VM_SKIPPED=$((VM_SKIPPED + 1)) + return + ;; + esac + if [[ "$status" != "running" ]]; then if [[ "$UPDATE_STOPPED" != "yes" ]]; then log "VM $id ($name): gestoppt -> übersprungen."