We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f6ed73 + c8af029 commit a5f69d8Copy full SHA for a5f69d8
lib/vagrant-hostmanager/hosts_file/updater.rb
@@ -38,6 +38,8 @@ def update_guest(machine)
38
machine.communicate.upload(file, '/tmp/hosts')
39
if windir
40
machine.communicate.sudo("#{move_cmd} /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
41
+ elsif machine.communicate.test('test -f /.dockerinit')
42
+ machine.communicate.sudo("cat /tmp/hosts > #{realhostfile}")
43
else
44
machine.communicate.sudo("#{move_cmd} /tmp/hosts #{realhostfile}")
45
end
0 commit comments