From f542881e12beda6a9320df0e40dc6d2d837fce01 Mon Sep 17 00:00:00 2001 From: Peter Wise Date: Wed, 5 Jul 2017 23:28:03 +0100 Subject: [PATCH] Got semi-automatic post-install directory sync working Thanks to workround comment from @cecilemuller on https://github.com/mitchellh/vagrant/issues/936 referencing https://stackoverflow.com/questions/24855635/check-if-vagrant-provisioning-has-been-done does require running vagrant up vagrant reload --- Vagrantfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 72397a3..a57751d 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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.