Create apt bucket partial cache dir [GH-40]
This commit is contained in:
parent
246ab52380
commit
0b13040888
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
||||||
@env[:cache_dirs] << guest_path
|
@env[:cache_dirs] << guest_path
|
||||||
|
|
||||||
machine.communicate.tap do |comm|
|
machine.communicate.tap do |comm|
|
||||||
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}")
|
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
|
||||||
unless comm.test("test -L #{guest_path}")
|
unless comm.test("test -L #{guest_path}")
|
||||||
comm.sudo("rm -rf #{guest_path}")
|
comm.sudo("rm -rf #{guest_path}")
|
||||||
comm.sudo("mkdir -p `dirname #{guest_path}`")
|
comm.sudo("mkdir -p `dirname #{guest_path}`")
|
||||||
|
|
Loading…
Reference in a new issue