Skip to content

Commit

Permalink
Got semi-automatic post-install directory sync working
Browse files Browse the repository at this point in the history
Thanks to workround comment from @cecilemuller on
  hashicorp/vagrant#936 referencing
  https://stackoverflow.com/questions/24855635/check-if-vagrant-provisioning-has-been-done

does require running
  vagrant up
  vagrant reload
  • Loading branch information
vagnerr committed Jul 5, 2017
1 parent 06e394a commit f542881
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ Vagrant.configure("2") do |config|
#############################################################################
# Uncomment *AFTER* first vagrant up so the VBadditions has time to install #
#############################################################################
#config.vm.synced_folder "../data", "/vagrant_data"
if File.exist?(".vagrant/machines/default/virtualbox/action_provision")
config.vm.synced_folder "../data", "/vagrant_data"
else
# hold off on the sync
end

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
Expand Down

0 comments on commit f542881

Please sign in to comment.