From 4f1171663344af09f63180048307c3ee5d013acf Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Sun, 29 Sep 2013 21:05:59 +1000 Subject: [PATCH] Remove old /tmp/bootstrap_salt.sh before uploading as it may not be writeable --- plugins/provisioners/salt/provisioner.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/provisioners/salt/provisioner.rb b/plugins/provisioners/salt/provisioner.rb index 433f94d97..b179da786 100644 --- a/plugins/provisioners/salt/provisioner.rb +++ b/plugins/provisioners/salt/provisioner.rb @@ -193,6 +193,7 @@ module VagrantPlugins bootstrap_path = get_bootstrap bootstrap_destination = File.join(config_dir, "bootstrap_salt.sh") + @machine.communicate.sudo("rm -f %s" % bootstrap_destination) @machine.communicate.upload(bootstrap_path.to_s, bootstrap_destination) @machine.communicate.sudo("chmod +x %s" % bootstrap_destination) bootstrap = @machine.communicate.sudo("%s %s" % [bootstrap_destination, options]) do |type, data|