Agent version

This commit is contained in:
Kroese 2023-04-14 17:14:24 +02:00 committed by GitHub
parent 213092dcd8
commit 2fe518faf0

View File

@ -42,6 +42,7 @@ _graceful_shutdown(){
echo "Could not send shutdown command to guest, error: $RESPONSE"
FILE="${IMG}/agent.ver"
[ ! -f "$FILE" ] && FILE="${IMG}"/"${BASE}".agent
[ ! -f "$FILE" ] && echo "1" > "$FILE"
AGENT_VERSION=$(cat "${FILE}")