summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-11-03 08:03:01 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-11-03 08:16:35 -0500
commit28dfad8d1fe46eccea5f3ca108914239e313ae0f (patch)
tree294b5a92c17f236c1a47dfe926a467675bcf6904 /ci
parente63f44eb68b9e87b9b99a135fe75f9f9e84b1103 (diff)
adding line for echo.
Change-Id: If54897864df2905c40b273c8922796d16d50772d Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/03-maasdeploy.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh
index 49391aad..3ee955df 100755
--- a/ci/03-maasdeploy.sh
+++ b/ci/03-maasdeploy.sh
@@ -5,6 +5,7 @@ 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
@@ -163,10 +164,10 @@ fi
mkdir ~/joid_config/ || true
mkdir ~/.juju/ || true
-sudo mkdir -p ~maas
+sudo mkdir -p ~maas || true
sudo chown maas:maas ~maas
if [ ! -e ~maas/.ssh/id_rsa ]; then
- sudo -u maas ssh-keygen -N '' -f ~maas/.ssh/id_rsa
+ sudo -u maas ssh-keygen -N '' -f ~maas/.ssh/id_rsa -y
fi
# Ensure virsh can connect without ssh auth