Fix lxc-reference initscript.
[lxc-reference.git] / 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