]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-ubuntu: Don't hardcode path to cache
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 5 Dec 2012 23:51:07 +0000 (18:51 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 6 Dec 2012 14:43:23 +0000 (09:43 -0500)
Use LOCALSTATEDIR to generate the path to the cache.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
configure.ac
templates/lxc-ubuntu.in [moved from templates/lxc-ubuntu with 99% similarity]

index 626d20244fec9747b23e8f8ab66fe4010c28787f..893e179ec2fa70a1121ce772d931810628b14de7 100644 (file)
@@ -245,6 +245,7 @@ AC_CONFIG_FILES([
        templates/Makefile
        templates/lxc-lenny
        templates/lxc-debian
+       templates/lxc-ubuntu
        templates/lxc-ubuntu-cloud
        templates/lxc-opensuse
        templates/lxc-busybox
similarity index 99%
rename from templates/lxc-ubuntu
rename to templates/lxc-ubuntu.in
index 4ccb01512d8b0449ce9a9cf6cba58f676e07b526..19de99139f65277937948e332cbf7f0a0177221d 100644 (file)
@@ -258,7 +258,7 @@ install_ubuntu()
     rootfs=$1
     release=$2
     flushcache=$3
-    cache="/var/cache/lxc/$release"
+    cache="@LOCALSTATEDIR@/cache/lxc/$release"
     mkdir -p /var/lock/subsys/
 
     (