Thanks for the reply. I had read your post but first of all I don't see a linked_clone line in my Vagrant file.
1 -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 require 'json'
5 require 'yaml'
6
7 VAGRANTFILE_API_VERSION ||= "2"
8 confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))
9
10 homesteadYamlPath = confDir + "/Homestead.yaml"
11 homesteadJsonPath = confDir + "/Homestead.json"
12 afterScriptPath = confDir + "/after.sh"
13 aliasesPath = confDir + "/aliases"
14
15 require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb')
16
17 Vagrant.require_version '>= 1.9.0'
18
19 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
20 if File.exist? aliasesPath then
21 config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases"
22 config.vm.provision "shell" do |s|
23 s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases"
24 end
25 end
26
27 if File.exist? homesteadYamlPath then
28 settings = YAML::load(File.read(homesteadYamlPath))
29 elsif File.exist? homesteadJsonPath then
30 settings = JSON.parse(File.read(homesteadJsonPath))
31 else
32 abort "Homestead settings file not found in #{confDir}"
33 end
34
35 Homestead.configure(config, settings)
36
37 if File.exist? afterScriptPath then
38 config.vm.provision "shell", path: afterScriptPath, privileged: false
39 end
40
41 if defined? VagrantPlugins::HostsUpdater
42 config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] }
43 end
44 end