From: garciadeblas Date: Thu, 3 May 2018 13:06:24 +0000 (+0200) Subject: install_osm.sh: proper read of juju account info X-Git-Tag: v3.1.0~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F6055%2F1;p=osm%2Fdevops.git install_osm.sh: proper read of juju account info Change-Id: I8b0e8d3f0fd5c7ae3d45324deb341bc7dc674246 Signed-off-by: garciadeblas --- diff --git a/installers/install_osm.sh b/installers/install_osm.sh index 9ba080ab..87caad34 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -561,7 +561,7 @@ EONG 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_SECRET=`grep password /home/ubuntu/.local/share/juju/accounts.yaml |awk '{print $2}'` + 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 echo "OSMLCM_VCA_SECRET=${OSMLCM_VCA_SECRET}" |sudo tee -a ${OSM_DEVOPS}/installers/docker/lcm.env