From: garciadeblas Date: Mon, 10 Apr 2017 16:12:12 +0000 (+0200) Subject: Fix bug to make route to Juju controller persistent X-Git-Tag: v1.1.1^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2f4c93bfdcc2c6dbd4f42dcba1146a6eb1f6d6da;p=osm%2Fdevops.git Fix bug to make route to Juju controller persistent Change-Id: I7cb77d69ccdc110eb49eb5b3b641d7a85ecc9fa8 Signed-off-by: garciadeblas --- diff --git a/installers/install_from_source.sh b/installers/install_from_source.sh index 63c986fa..9696671e 100755 --- a/installers/install_from_source.sh +++ b/installers/install_from_source.sh @@ -150,7 +150,7 @@ function configure(){ echo -e " Configuring SO" sudo route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP - sudo sed -i "$iroute add -host \$JUJU_CONTROLLER_IP gw \$VCA_CONTAINER_IP" /etc/rc.local + sudo sed -i "$ i route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP" /etc/rc.local lxc exec SO-ub -- nohup sudo -b -H /usr/rift/rift-shell -r -i /usr/rift -a /usr/rift/.artifacts -- ./demos/launchpad.py --use-xml-mode & time=0; step=30; timelength=300; while [ $time -le $timelength ]; do sleep $step; echo -n "."; time=$((time+step)); done; echo