Fix bug to make route to Juju controller persistent
[osm/devops.git] / installers / install_from_source.sh
index 63c986f..9696671 100755 (executable)
@@ -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