mirror of
git://github.com/lxc/lxc
synced 2025-08-30 08:39:59 +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:
parent
3fefd6e6d5
commit
9cde0368fb
@ -283,8 +283,10 @@ type wget
|
|||||||
# determine the url, tarball, and directory names
|
# determine the url, tarball, and directory names
|
||||||
# download if needed
|
# download if needed
|
||||||
cache="$STATE_DIR/cache/lxc/cloud-$release"
|
cache="$STATE_DIR/cache/lxc/cloud-$release"
|
||||||
STATE_DIR="$HOME/.cache/lxc/"
|
if [ $in_userns -eq 1 ]; then
|
||||||
cache="$HOME/.cache/lxc/cloud-$release"
|
STATE_DIR="$HOME/.cache/lxc/"
|
||||||
|
cache="$HOME/.cache/lxc/cloud-$release"
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $cache
|
mkdir -p $cache
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user