Skip to content

Commit

Permalink
fix host file update path
Browse files Browse the repository at this point in the history
  • Loading branch information
BadgerOps committed May 3, 2017
1 parent 06b75cd commit c2637f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-hostmanager/hosts_file/updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def update_guest(machine)

if update_file(file, machine, false, line_endings)
# upload modified file and remove temporary file
machine.communicate.upload(file.to_s, '/tmp/hosts')
machine.communicate.upload(file.to_s, "/tmp/hosts/hosts.#{machine.name}")
if windir
machine.communicate.sudo("mv -force /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
else
Expand Down

0 comments on commit c2637f6

Please sign in to comment.