Code Review
/
icn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
651a9b08fa9b7f590353629cbbf5d420a24c5136
[icn.git]
/
deploy
/
metal3-vm
/
vm-setup
/
roles
/
virtbmc
/
files
/
vbmc_start.sh
1
#!/usr/bin/env bash
2
set -eux -o pipefail
3
4
name="$1"
5
6
status=$(vbmc show -f value $name | grep status | cut -f2 -d' ')
7
8
export PATH=$PATH:/usr/local/bin
9
10
if [[ $status != "running" ]]; then
11
vbmc start $name
12
fi