From cae4a1c554af0091c6ed917c257f6a6c68fb93c2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 5 Mar 2014 16:22:55 -0800 Subject: [PATCH] guests/redhat: force remove files so it works with pty --- plugins/guests/redhat/cap/configure_networks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/guests/redhat/cap/configure_networks.rb b/plugins/guests/redhat/cap/configure_networks.rb index 8540e7018..eb30474c5 100644 --- a/plugins/guests/redhat/cap/configure_networks.rb +++ b/plugins/guests/redhat/cap/configure_networks.rb @@ -31,7 +31,7 @@ module VagrantPlugins machine.communicate.sudo("touch #{network_scripts_dir}/ifcfg-eth#{network[:interface]}") machine.communicate.sudo("sed -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' #{network_scripts_dir}/ifcfg-eth#{network[:interface]} > /tmp/vagrant-ifcfg-eth#{network[:interface]}") machine.communicate.sudo("cat /tmp/vagrant-ifcfg-eth#{network[:interface]} > #{network_scripts_dir}/ifcfg-eth#{network[:interface]}") - machine.communicate.sudo("rm /tmp/vagrant-ifcfg-eth#{network[:interface]}") + machine.communicate.sudo("rm -f /tmp/vagrant-ifcfg-eth#{network[:interface]}") # Render and upload the network entry file to a deterministic # temporary location. @@ -61,7 +61,7 @@ module VagrantPlugins machine.communicate.sudo("ARPCHECK=no /sbin/ifup eth#{interface} 2> /dev/null") end - machine.communicate.sudo("rm /tmp/vagrant-network-entry_#{interface}") + machine.communicate.sudo("rm -f /tmp/vagrant-network-entry_#{interface}") end end end