From feef887387cd7bde1b98617cb9ecdf5a9e4d4537 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 19 Apr 2018 13:35:25 +0200 Subject: [PATCH] install_osm.sh: echo proper env variables when installing osmclient Change-Id: I8e559650502f9b083b0b06b6bd45159f3ecf8831 Signed-off-by: garciadeblas --- installers/install_osm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installers/install_osm.sh b/installers/install_osm.sh index d63e95ac..e2605103 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -424,6 +424,9 @@ function install_osmclient(){ #sed 's,OSM_SOL005=[^$]*,OSM_SOL005=True,' -i ${HOME}/.bashrc #echo 'export OSM_HOSTNAME=localhost' >> ${HOME}/.bashrc #echo 'export OSM_SOL005=True' >> ${HOME}/.bashrc + [ -z "$INSTALL_LIGHTWEIGHT" ] && export OSM_HOSTNAME=`lxc list | awk '($2=="SO-ub"){print $6}'` + [ -z "$INSTALL_LIGHTWEIGHT" ] && export OSM_RO_HOSTNAME=`lxc list | awk '($2=="RO"){print $6}'` + [ -n "$INSTALL_LIGHTWEIGHT" ] && export OSM_HOSTNAME=localhost echo -e "\nOSM client installed" echo -e "You might be interested in adding the following OSM client env variables to your .bashrc file:" echo " export OSM_HOSTNAME=${OSM_HOSTNAME}" -- 2.25.1