Fix lxc-reference initscript.
authorMarco Yuen <marcoy@gmail.com>
Mon, 19 Dec 2011 18:35:46 +0000 (13:35 -0500)
committerMarco Yuen <marcoy@gmail.com>
Mon, 19 Dec 2011 18:35:46 +0000 (13:35 -0500)
initscript/lxc-reference

index 7931f99..e361e1f 100644 (file)
@@ -25,9 +25,9 @@ VERSION=`yum info lxc-reference | grep Version | awk '{ print $3; }'`
 
 if [ -f /vservers/lxc-reference-${VERSION}.tgz ]; then
     mkdir -p /vservers/.lvref
-    btrfs subvolume /vservers/.lvref/lxc-f14-x86_86
-    btrfs subvolume /vservers/.lvref/lxc-squeeze-x86_86
-    tar zxvf /vservers/lxc-reference-${VERSION}.tgz -C /vservers/tmp
+    btrfs subvolume create /vservers/.lvref/lxc-f14-x86_64
+    btrfs subvolume create /vservers/.lvref/lxc-squeeze-x86_64
+    tar zxvf /vservers/lxc-reference-${VERSION}.tgz -C /vservers/
     rm -rf /vservers/lxc-reference-${VERSION}.tgz
 fi