From 53a79d90e9452ef3a29fbe9889f18a18a6fdcf04 Mon Sep 17 00:00:00 2001 From: Torben Date: Sat, 8 Mar 2014 15:59:12 +0100 Subject: [PATCH] create vagrant_omnibus pseudo bucket if not exists, otherwise current version of install.sh would fail --- lib/vagrant-cachier/action/configure_bucket_root.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant-cachier/action/configure_bucket_root.rb b/lib/vagrant-cachier/action/configure_bucket_root.rb index 5e44f59..ee855f3 100644 --- a/lib/vagrant-cachier/action/configure_bucket_root.rb +++ b/lib/vagrant-cachier/action/configure_bucket_root.rb @@ -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