From 092e8a95b31ac9848f5701a62f6ffe560995c6e4 Mon Sep 17 00:00:00 2001 From: Steve Hodgkiss Date: Mon, 2 Apr 2012 14:56:43 +1000 Subject: [PATCH] Cleanup any tmp files set by vagrant to fix a permissions issue when switching users. --- lib/vagrant/action/vm/network.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/action/vm/network.rb b/lib/vagrant/action/vm/network.rb index d2e63b76b..81de8ab2a 100644 --- a/lib/vagrant/action/vm/network.rb +++ b/lib/vagrant/action/vm/network.rb @@ -70,6 +70,7 @@ module Vagrant networks_to_configure = networks.select { |n| n[:_auto_config] } env[:ui].info I18n.t("vagrant.actions.vm.network.configuring") env[:vm].guest.configure_networks(networks_to_configure) + env[:vm].channel.sudo("su -c 'rm /tmp/vagrant-*'") end end