2
0
mirror of git://github.com/lxc/lxc synced 2025-08-29 20:59:51 +00:00

lxc-ubuntu-cloud: Fix cache and lock location

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-01-15 23:06:45 -05:00
parent 3fefd6e6d5
commit 9cde0368fb

View File

@ -283,8 +283,10 @@ type wget
# determine the url, tarball, and directory names
# download if needed
cache="$STATE_DIR/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