Ensure /tmp/vagrant-cache exists before chmodding it

This commit is contained in:
Fabio Rehm 2014-02-14 19:50:14 -02:00
parent 6555e72f39
commit 13e8d5e674

View file

@ -21,7 +21,7 @@ module VagrantPlugins
def chmod_bucket_root(machine) def chmod_bucket_root(machine)
@logger.info "'chmod'ing bucket root dir to 777..." @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 end
def configure_cache_buckets(env) def configure_cache_buckets(env)