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:
Jose Luis Duran 2018-04-19 14:04:27 -03:00
parent ed0ccd8ca0
commit 53acd20548
No known key found for this signature in database
GPG Key ID: 8BE8242E460537F4
1 changed files with 1 additions and 1 deletions

View File

@ -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")