From: garciadeblas Date: Fri, 18 May 2018 08:22:09 +0000 (+0200) Subject: add checks to the installer for juju and docker CE installation X-Git-Tag: v4.0.0~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=67ce97c0dbc7da2d8b3cddadc8cefdb27c7f66bf;p=osm%2Fdevops.git add checks to the installer for juju and docker CE installation Change-Id: I2fdb488286eb1c80f78a6e9391293f5a35dd0705 Signed-off-by: garciadeblas --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index d560b4ee..b22b9e28 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -521,10 +521,12 @@ function install_docker_ce() { 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 @@ function install_juju() { 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" }