[lxc-devel] [PATCH] lxc-ubuntu-cloud: Fix cache and lock location
Serge Hallyn
serge.hallyn at ubuntu.com
Thu Jan 16 04:35:33 UTC 2014
Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Oh. Drat. Thanks, I shoulda done that yesterday.
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> templates/lxc-ubuntu-cloud.in | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/templates/lxc-ubuntu-cloud.in b/templates/lxc-ubuntu-cloud.in
> index 2cf86c9..7a3c8c3 100644
> --- a/templates/lxc-ubuntu-cloud.in
> +++ b/templates/lxc-ubuntu-cloud.in
> @@ -283,8 +283,10 @@ type wget
> # determine the url, tarball, and directory names
> # download if needed
> cache="$STATE_DIR/cache/lxc/cloud-$release"
> -STATE_DIR="$HOME/.cache/lxc/"
> -cache="$HOME/.cache/lxc/cloud-$release"
> +if [ $in_userns -eq 1 ]; then
> + STATE_DIR="$HOME/.cache/lxc/"
> + cache="$HOME/.cache/lxc/cloud-$release"
> +fi
>
> mkdir -p $cache
>
> --
> 1.8.5.2
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list