create vagrant_omnibus pseudo bucket if not exists, otherwise current version of install.sh would fail

This commit is contained in:
Torben 2014-03-08 15:59:12 +01:00
parent edde1730ef
commit 53a79d90e9

View file

@ -35,6 +35,8 @@ module VagrantPlugins
# unfortunately vagrant-omnibus hooks in before our buckets are installed, yet
# this is early enough to tell it to download to the vagrant-omnibus pseudo bucket
if @env[:machine].config.cache.auto_detect && omnibus_plugin_detected? && omnibus_plugin_enabled?
omnibus_pseudo_bucket = host_cache_root.join('vagrant_omnibus')
FileUtils.mkdir(omnibus_pseudo_bucket.to_s) unless omnibus_pseudo_bucket.exist?
ENV['OMNIBUS_DOWNLOAD_DIR'] ||= "#{guest_cache_root}/vagrant_omnibus"
end
end