This commit is contained in:
Kroese 2023-04-17 03:24:43 +02:00 committed by GitHub
parent a7a68dbc80
commit 76ae12575b

View File

@ -49,9 +49,9 @@ _graceful_shutdown(){
echo echo
echo "Could not send shutdown command to guest, error: $RESPONSE" echo "Could not send shutdown command to guest, error: $RESPONSE"
FILE="${STORAGE}/${BASE}.agent" AGENT="${STORAGE}/${BASE}.agent"
[ ! -f "$FILE" ] && echo "1" > "$FILE" [ ! -f "$AGENT" ] && echo "1" > "$AGENT"
AGENT_VERSION=$(cat "${FILE}") AGENT_VERSION=$(cat "${AGENT}")
if ((AGENT_VERSION < 2)); then if ((AGENT_VERSION < 2)); then
echo echo