summaryrefslogtreecommitdiffstats
path: root/ci/cleanmaas.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/cleanmaas.sh')
-rwxr-xr-xci/cleanmaas.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/ci/cleanmaas.sh b/ci/cleanmaas.sh
index 41a74196..bcb4e443 100755
--- a/ci/cleanmaas.sh
+++ b/ci/cleanmaas.sh
@@ -2,10 +2,6 @@
set -ex
-maasver=$(apt-cache policy maas | grep Installed | cut -d ':' -f 2 | sed -e 's/^[ ]*//')
-
-if [[ "$maasver" > "2" ]]; then
- echo "removing existing maas ..."
- 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
-fi
+echo "removing existing maas ..."
+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