X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Ffull_install_osm.sh;h=b22b9e28266030a26934795ff61b814c49d52bc4;hb=67ce97c0dbc7da2d8b3cddadc8cefdb27c7f66bf;hp=d560b4eeba64a5df54e8fc0d0a5a2a6795bebc39;hpb=b5c5532acfc8dc4b71e17f2047d48d446ca132ba;p=osm%2Fdevops.git 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" }