fix host mountpoint
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 28 Jan 2014 18:33:58 +0000 (18:33 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 28 Jan 2014 18:33:58 +0000 (18:33 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@311 191e9f34-6774-4a6d-acfc-7664dacd4a2a

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`