5 if [ ! -d labconfig.yaml ]; then
6 cp ~/joid_config/labconfig.yaml ./labconfig.yaml || true
7 if [ -d $HOME/joid_config/deployconfig.yaml ]; then
8 cp ~/joid_config/deployconfig.yaml ./deployconfig.yaml || true
10 python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
14 controllername=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
15 cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployconfig.yaml`
16 juju destroy-controller $controllername --destroy-all-models -y || true
17 #juju kill-controller $controllername --timeout 10s -y || true
21 rm -rf ~/joid_config/admin-openrc
23 sudo sysctl -w vm.drop_caches=3