VMware Documentation Fix - SED Syntax

we should only create the backup file on the first `sed` modification. The second `sed` operation will create a backup with the changes from the first `sed` operation.
This commit is contained in:
Brian Dwyer 2015-03-31 18:20:42 -04:00
parent f5ee8b8b7d
commit e72d03cfc6
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ enable auto-upgrading:
# when we update the linux images
$fix_vmware_tools_script = <<SCRIPT
sed -i.bak 's/answer AUTO_KMODS_ENABLED_ANSWER no/answer AUTO_KMODS_ENABLED_ANSWER yes/g' /etc/vmware-tools/locations
sed -i.bak 's/answer AUTO_KMODS_ENABLED no/answer AUTO_KMODS_ENABLED yes/g' /etc/vmware-tools/locations
sed -i 's/answer AUTO_KMODS_ENABLED no/answer AUTO_KMODS_ENABLED yes/g' /etc/vmware-tools/locations
SCRIPT
Vagrant.configure(2) do |config|