Fold destroy, pristine and virshall into 'command'. Add a lock to avoid destroying active/inuse LABs
This commit is contained in:
@@ -19,6 +19,11 @@ BASE=${BASE:=ssd-vol0/hvn0.chbtl0.ipng.ch/ssd-vol0/vpp-proto-disk0@20230403-rele
|
||||
BUILD=${BUILD:=default}
|
||||
LAB=${LAB:=0}
|
||||
|
||||
[ -r .lock${LAB} ] && {
|
||||
echo "Lock file for LAB${LAB}, bailing"
|
||||
exit
|
||||
}
|
||||
|
||||
## Do not touch below this line
|
||||
LABDIR=/var/lab
|
||||
STAGING=$LABDIR/staging
|
||||
|
||||
Reference in New Issue
Block a user