mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Agent version
This commit is contained in:
parent
213092dcd8
commit
2fe518faf0
1
power.sh
1
power.sh
@ -42,6 +42,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}/agent.ver"
|
||||||
|
[ ! -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