diff --git a/power.sh b/power.sh index 5e32f41..32e2d3c 100644 --- a/power.sh +++ b/power.sh @@ -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}")