Commit 9cde0368 by Stéphane Graber

lxc-ubuntu-cloud: Fix cache and lock location

parent 3fefd6e6
...@@ -283,8 +283,10 @@ type wget ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment