Cleanup any tmp files set by vagrant to fix a permissions issue when switching users.
This commit is contained in:
parent
73b31b5a3b
commit
092e8a95b3
|
@ -70,6 +70,7 @@ module Vagrant
|
||||||
networks_to_configure = networks.select { |n| n[:_auto_config] }
|
networks_to_configure = networks.select { |n| n[:_auto_config] }
|
||||||
env[:ui].info I18n.t("vagrant.actions.vm.network.configuring")
|
env[:ui].info I18n.t("vagrant.actions.vm.network.configuring")
|
||||||
env[:vm].guest.configure_networks(networks_to_configure)
|
env[:vm].guest.configure_networks(networks_to_configure)
|
||||||
|
env[:vm].channel.sudo("su -c 'rm /tmp/vagrant-*'")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue