From 13e8d5e67458f84cc4403feb3cfc2fafda39c9d1 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 14 Feb 2014 19:50:14 -0200 Subject: [PATCH] Ensure /tmp/vagrant-cache exists before chmodding it --- lib/vagrant-cachier/action/install_buckets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)