]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
plamo: Support LXC_CACHE_PATH
authorKATOH Yasufumi <karma@jazz.email.ne.jp>
Wed, 24 Jun 2015 06:31:59 +0000 (15:31 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 30 Jun 2015 19:17:05 +0000 (15:17 -0400)
lxc-plamo supports LXC_CACHE_PATH that is introduced at commit 6dc6f80

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-plamo.in

index 3e2a8f2e9f21cc15edb4afa0d2c616640e15488a..fbff870dd3ed068b28fbf65ea8398645e9f73f9f 100644 (file)
@@ -336,7 +336,7 @@ if [ `id -u` -ne 0 ] ; then
   echo "This script should be run as 'root'."
   exit 1
 fi
-cache=@LOCALSTATEDIR@/cache/lxc
+cache="${LXC_CACHE_PATH:-@LOCALSTATEDIR@/cache/lxc}"
 ptcache=$cache/partial-${prog##*-}-$release-$arch
 dlcache=$cache/cache-${prog##*-}-$release-$arch
 rtcache=$cache/rootfs-${prog##*-}-$release-$arch