Force move on linux systems
If the script is run as root, usually mv has an alias to ask for overwriting. This force the overwriting.
This commit is contained in:
parent
21f7d23105
commit
78cf4b239d
|
@ -18,7 +18,7 @@ module VagrantPlugins
|
||||||
move_cmd = 'mv -force'
|
move_cmd = 'mv -force'
|
||||||
else
|
else
|
||||||
realhostfile = '/etc/hosts'
|
realhostfile = '/etc/hosts'
|
||||||
move_cmd = 'mv'
|
move_cmd = 'mv -f'
|
||||||
end
|
end
|
||||||
# download and modify file with Vagrant-managed entries
|
# download and modify file with Vagrant-managed entries
|
||||||
file = @global_env.tmp_path.join("hosts.#{machine.name}")
|
file = @global_env.tmp_path.join("hosts.#{machine.name}")
|
||||||
|
|
Loading…
Reference in New Issue