From: garciadeblas Date: Wed, 15 Jan 2020 17:20:14 +0000 (+0100) Subject: Fix bug 991: adding USER to lxd group before juju bootstrap X-Git-Tag: v7.0.1rc2~1^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F8483%2F1;p=osm%2Fdevops.git Fix bug 991: adding USER to lxd group before juju bootstrap Change-Id: Idd5d656b70890cd6bac98a652b52a92896c2ee5a Signed-off-by: garciadeblas --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 6e226cc8..14cd58b2 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -719,6 +719,7 @@ function install_juju() { function juju_createcontroller() { if ! juju show-controller $OSM_STACK_NAME &> /dev/null; then # Not found created, create the controller + sudo usermod -a -G lxd ${USER} sg lxd -c "juju bootstrap --bootstrap-series=xenial localhost $OSM_STACK_NAME" fi [ $(juju controllers | awk "/^${OSM_STACK_NAME}[\*| ]/{print $1}"|wc -l) -eq 1 ] || FATAL "Juju installation failed"