This commit is contained in:
Kroese 2023-04-14 17:18:26 +02:00 committed by GitHub
parent 2fe518faf0
commit 2783ab874d

View File

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