add checks to the installer for juju and docker CE installation
Change-Id: I2fdb488286eb1c80f78a6e9391293f5a35dd0705
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh
index d560b4e..b22b9e2 100755
--- a/installers/full_install_osm.sh
+++ b/installers/full_install_osm.sh
@@ -521,10 +521,12 @@
echo "Adding user to group 'docker'"
sudo groupadd -f docker
sudo usermod -aG docker $USER
- echo "... Docker CE installation done"
sleep 2
sudo service docker restart
echo "... restarted Docker service"
+ sg docker -c "docker version" || FATAL "Docker installation failed"
+ echo "... Docker CE installation done"
+ return 0
}
function install_docker_compose() {
@@ -540,6 +542,7 @@
sudo snap install juju --classic
sudo dpkg-reconfigure -p medium lxd
sg lxd -c "juju bootstrap localhost osm"
+ [ $(juju status |grep "osm" |wc -l) -eq 1 ] || FATAL "Juju installation failed"
echo "Finished installation of juju"
}