Merge pull request #260 from Telekom-PD/fix_hosts_update_hang
Fix hang on systems with interactive rm
This commit is contained in:
commit
eddb711cd6
|
@ -45,7 +45,7 @@ module VagrantPlugins
|
||||||
if windir
|
if windir
|
||||||
machine.communicate.sudo("mv -force /tmp/hosts.#{machine.name} #{realhostfile}")
|
machine.communicate.sudo("mv -force /tmp/hosts.#{machine.name} #{realhostfile}")
|
||||||
else
|
else
|
||||||
machine.communicate.sudo("cat /tmp/hosts.#{machine.name} > #{realhostfile} && rm /tmp/hosts.#{machine.name}")
|
machine.communicate.sudo("cat /tmp/hosts.#{machine.name} > #{realhostfile} && rm -f /tmp/hosts.#{machine.name}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue