This commit is contained in:
Kroese 2023-04-18 18:06:59 +02:00 committed by GitHub
parent a18cdf17d4
commit 05d49ae434

View File

@ -42,9 +42,8 @@ _graceful_shutdown(){
# If we cannot shutdown the usual way, fallback to the NMI method
AGENT_VERSION=1
AGENT="${STORAGE}/${BASE}.agent"
[ -f "$AGENT" ] && AGENT_VERSION=$(cat "${AGENT}")
[ -f "$AGENT" ] && AGENT_VERSION=$(cat "${AGENT}") || AGENT_VERSION=1
if ((AGENT_VERSION < 2)); then