diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-11-02 04:51:23 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-11-02 12:55:58 -0500 |
commit | 1e29dbbb3bfb71fa4c79a67dcd07b9cddca63ac2 (patch) | |
tree | 4981fa02b62a0d9e01241b40a7d43909790c7e8c /ci/clean.sh | |
parent | cb2c19c322d2c798bfa28ad719240ef3341f4498 (diff) |
modified to have better support of maas 2.0
Change-Id: Ie1298f2c2ccc04e0bb63a9303712d1a16b3f066c
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/clean.sh')
-rwxr-xr-x | ci/clean.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ci/clean.sh b/ci/clean.sh index 0cd20761..eaff136b 100755 --- a/ci/clean.sh +++ b/ci/clean.sh @@ -10,8 +10,8 @@ fi jujuver=`juju --version` if [[ "$jujuver" > "2" ]]; then - controllername=`awk 'NR==1{print $2}' environments.yaml` - cloudname=`awk 'NR==1{print $2}' environments.yaml` + controllername=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployment.yaml` + cloudname=`awk 'NR==1{print substr($1, 1, length($1)-1)}' deployment.yaml` juju kill-controller $controllername --timeout 10s -y || true rm -rf precise rm -rf trusty @@ -37,3 +37,5 @@ elif [ -d $HOME/.juju/environments ]; then sudo sysctl -w vm.drop_caches=3 fi +#sudo apt-get purge maas maas-cli maas-common maas-dhcp maas-dns maas-proxy maas-rack-controller maas-region-api maas-region-controller -y +#sudo rm -rf /var/lib/maas |