tweaks after migration of narada
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / B-ganeti-network-interfaces.sh
index 0ba5a3d..cfedad7 100755 (executable)
@@ -5,8 +5,8 @@
 . ./0-ganeti.sh
 
 ssh_lxc cat /var/lib/lxc/$host/config | grep ipv4 | tee $host/ipv4
-public_ip=`grep 193.198 rt/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'`
-local_ip=` grep 10.60   rt/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'`
+public_ip=`grep 193.198 $host/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'`
+local_ip=` grep 10.60   $host/ipv4 | cut -d= -f2 | cut -d/ -f1 | sed 's/ *//'`
 
 tee /tmp/network-interfaces-$host << __INTERFACES__
 auto eth0 eth1 lo