Added env OPENMANO_TENANT=osm at RO container 34/1934/2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 14 Jun 2017 11:23:01 +0000 (13:23 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 15 Jun 2017 16:13:25 +0000 (18:13 +0200)
Change-Id: I8a72360fd242b8521c39847c49c48d2270f136fd
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
installers/install_osm.sh

index 34494ec..8f48272 100755 (executable)
@@ -172,6 +172,9 @@ function configure(){
 
     lxc exec RO -- openmano tenant-delete -f osm >/dev/null
     RO_TENANT_ID=`lxc exec RO -- openmano tenant-create osm |awk '{print $1}'`
+    lxc exec RO -- sed -i '/export OPENMANO_TENANT=osm/d' .bashrc 
+    lxc exec RO -- sed -i '$ i export OPENMANO_TENANT=osm' .bashrc
+    #lxc exec RO -- sh -c 'echo "export OPENMANO_TENANT=osm" >> .bashrc'
 
     echo -e "       Configuring VCA"
     JUJU_PASSWD=`date +%s | sha256sum | base64 | head -c 32`