From 2783ab874dc42421ce22de9c51b2c65d70828e11 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 14 Apr 2023 17:18:26 +0200 Subject: [PATCH] Agent --- power.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/power.sh b/power.sh index 32e2d3c..5a09fa0 100644 --- a/power.sh +++ b/power.sh @@ -41,8 +41,7 @@ _graceful_shutdown(){ echo "Could not send shutdown command to guest, error: $RESPONSE" - FILE="${IMG}/agent.ver" - [ ! -f "$FILE" ] && FILE="${IMG}"/"${BASE}".agent + FILE="${IMG}/${BASE}.agent" [ ! -f "$FILE" ] && echo "1" > "$FILE" AGENT_VERSION=$(cat "${FILE}")