V6
This commit is contained in:
1 parent
99035841c2
commit
dcd95dc19c
1 file changed
+7
-5
+7
-5
@@ -812,12 +812,9 @@ log "Host Update: $HOST_OK"
|
|||||||
log "Host Reboot nötig: $HOST_REBOOT_REQUIRED"
|
log "Host Reboot nötig: $HOST_REBOOT_REQUIRED"
|
||||||
log "============================================================"
|
log "============================================================"
|
||||||
|
|
||||||
if [[ -z "$ONLY_CT" \
|
if [[ "$MODE" == "update" ]]; then
|
||||||
&& -z "$ONLY_VM" \
|
|
||||||
&& "$MODE" == "update" ]]
|
|
||||||
then
|
|
||||||
if (( ERRORS > 0 )); then
|
if (( ERRORS > 0 )); then
|
||||||
if [[ "$HOST_REBOOT_REQUIRED" == "yes" ]]; then
|
if [[ -z "$ONLY_CT" && -z "$ONLY_VM" && "$HOST_REBOOT_REQUIRED" == "yes" ]]; then
|
||||||
log ""
|
log ""
|
||||||
log "Host-Neustart erforderlich, aber automatischer Neustart wird NICHT ausgeführt."
|
log "Host-Neustart erforderlich, aber automatischer Neustart wird NICHT ausgeführt."
|
||||||
log "Grund: $ERRORS Fehler im Update-Lauf."
|
log "Grund: $ERRORS Fehler im Update-Lauf."
|
||||||
@@ -829,6 +826,11 @@ then
|
|||||||
log "Grund: $ERRORS Fehler im Update-Lauf."
|
log "Grund: $ERRORS Fehler im Update-Lauf."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
elif [[ -n "$ONLY_CT" || -n "$ONLY_VM" ]]; then
|
||||||
|
# Gezielter Gast-Lauf: Der Proxmox-Host wurde nicht aktualisiert.
|
||||||
|
# Deshalb notwendige Gast-Neustarts direkt am Ende ausführen.
|
||||||
|
reboot_pending_guests
|
||||||
|
|
||||||
elif [[ "$HOST_OK" == "yes" \
|
elif [[ "$HOST_OK" == "yes" \
|
||||||
&& "$HOST_REBOOT_REQUIRED" == "yes" \
|
&& "$HOST_REBOOT_REQUIRED" == "yes" \
|
||||||
&& "$AUTO_REBOOT_HOST" == "yes" \
|
&& "$AUTO_REBOOT_HOST" == "yes" \
|
||||||
|
|||||||
Reference in new issue
Block a user