blob: 41a74196c102d88dfea2e0dff0701b527341ddf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
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
|