Fix network configuration on FreeBSD hosts
There was a missing space within `sed` parameters that caused the `rc.conf` file to be wrongly created as `rc.conf-e`.
This commit is contained in:
parent
ed0ccd8ca0
commit
53acd20548
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
|||
interfaces = []
|
||||
|
||||
# Remove any previous network additions to the configuration file.
|
||||
commands << "sed -i'' -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/rc.conf"
|
||||
commands << "sed -i '' -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/rc.conf"
|
||||
|
||||
comm.sudo("ifconfig -a | grep -o '^[0-9a-z]*' | grep -v '^lo'", options) do |_, stdout|
|
||||
interfaces = stdout.split("\n")
|
||||
|
|
Loading…
Reference in New Issue