mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Agent
This commit is contained in:
parent
2fe518faf0
commit
2783ab874d
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}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user