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."