Cleanup any tmp files set by vagrant to fix a permissions issue when switching users.

This commit is contained in:
Steve Hodgkiss 2012-04-02 14:56:43 +10:00
parent 73b31b5a3b
commit 092e8a95b3
1 changed files with 1 additions and 0 deletions

View File

@ -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