From: KATOH Yasufumi Date: Wed, 24 Jun 2015 06:31:59 +0000 (+0900) Subject: plamo: Support LXC_CACHE_PATH X-Git-Tag: lxc-2.0.0.beta1~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da7b32317aa7fa01f8adcba21ce903eb7d6e67ac;p=thirdparty%2Flxc.git plamo: Support LXC_CACHE_PATH lxc-plamo supports LXC_CACHE_PATH that is introduced at commit 6dc6f80 Signed-off-by: KATOH Yasufumi Acked-by: Serge E. Hallyn --- diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in index 3e2a8f2e9..fbff870dd 100644 --- a/templates/lxc-plamo.in +++ b/templates/lxc-plamo.in @@ -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