fix host mountpoint
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 2-lxc-mount-point.sh
index ebb3a21..b91e5ec 100755 (executable)
@@ -11,5 +11,5 @@ ssh_lxc() {
 ssh_lxc /etc/init.d/lxc-watchdog status
 mnt=`cat $host/lxc-watchdog | grep ^$host | awk '{ print $4 }' | tee $host/mnt`
 ssh_lxc df -h $mnt
-size=`cat $host/df | grep /mnt/rt | awk '{ print $2 }' | tee $host/size`
+size=`cat $host/df | grep /mnt/$host | awk '{ print $2 }' | tee $host/size`