Code Review
/
icn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Check for errors by default in scripts
[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