diff --git a/lib/vagrant-cachier/action/install_buckets.rb b/lib/vagrant-cachier/action/install_buckets.rb index aeb8037..e8c809b 100644 --- a/lib/vagrant-cachier/action/install_buckets.rb +++ b/lib/vagrant-cachier/action/install_buckets.rb @@ -21,7 +21,7 @@ module VagrantPlugins def chmod_bucket_root(machine) @logger.info "'chmod'ing bucket root dir to 777..." - machine.communicate.sudo 'chmod 777 /tmp/vagrant-cache' + machine.communicate.sudo 'mkdir -p /tmp/vagrant-cache && chmod 777 /tmp/vagrant-cache' end def configure_cache_buckets(env)