X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=installers%2Ffull_install_osm.sh;h=f0627c790d8f7b2798076189042dd988325723d0;hb=refs%2Fchanges%2F08%2F6208%2F1;hp=3e0172ebb5bc0717ba2e69890c68d3c03f5c2b4c;hpb=cf0e34a4ad633f2402ceb52788ad4e0cffc1f1d4;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 3e0172eb..f0627c79 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -548,7 +548,7 @@ function install_juju() { sudo snap install juju --classic sudo dpkg-reconfigure -p medium lxd sg lxd -c "juju bootstrap --bootstrap-series=xenial localhost osm" - [ $(juju status |grep "osm" |wc -l) -eq 1 ] || FATAL "Juju installation failed" + [ $(sg lxd -c "juju status" |grep "osm" |wc -l) -eq 1 ] || FATAL "Juju installation failed" echo "Finished installation of juju" } @@ -590,7 +590,7 @@ function generate_config_log_folders() { function generate_docker_env_files() { echo "Generating docker env files" - OSMLCM_VCA_HOST=`juju show-controller|grep api-endpoints|awk -F\' '{print $2}'|awk -F\: '{print $1}'` + OSMLCM_VCA_HOST=`sg lxd -c "juju show-controller"|grep api-endpoints|awk -F\' '{print $2}'|awk -F\: '{print $1}'` OSMLCM_VCA_SECRET=`grep password ${HOME}/.local/share/juju/accounts.yaml |awk '{print $2}'` MYSQL_ROOT_PASSWORD=`date +%s | sha256sum | base64 | head -c 32` echo "OSMLCM_VCA_HOST=${OSMLCM_VCA_HOST}" |sudo tee ${OSM_DEVOPS}/installers/docker/lcm.env