lib/vagrant-vyatta/cap/configure_networks.rb in vagrant-vyatta-0.0.2 vs lib/vagrant-vyatta/cap/configure_networks.rb in vagrant-vyatta-0.0.3
- old
+ new
@@ -35,11 +35,11 @@
temp.binmode
temp.write(commands)
temp.close
comm.upload(temp.path, "/tmp/vagrant-configure-network")
- comm.sudo("sudo bash /tmp/vagrant-configure-network")
- comm.sudo("sudo rm /tmp/vagrant-configure-network")
+ comm.execute("bash /tmp/vagrant-configure-network")
+ comm.execute("rm -f /tmp/vagrant-configure-network")
end
end
end
end
end