From 67ce97c0dbc7da2d8b3cddadc8cefdb27c7f66bf Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 18 May 2018 10:22:09 +0200 Subject: [PATCH] add checks to the installer for juju and docker CE installation Change-Id: I2fdb488286eb1c80f78a6e9391293f5a35dd0705 Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" } -- 2.25.1