mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-01-07 06:00:50 +08:00
Agent
This commit is contained in:
3
power.sh
3
power.sh
@@ -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}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user