From 3e20a2981d7d0b6712631e8521502c51adff75af Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 19 Jun 2017 10:48:50 -0500 Subject: [PATCH] Issue #1681: Set vagrant exec default directory in BLT Vagrantfile. (#1688) --- scripts/drupal-vm/Vagrantfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/drupal-vm/Vagrantfile b/scripts/drupal-vm/Vagrantfile index eb7e8cd1d..45fc71980 100644 --- a/scripts/drupal-vm/Vagrantfile +++ b/scripts/drupal-vm/Vagrantfile @@ -11,3 +11,8 @@ ENV['DRUPALVM_DIR'] = "vendor/geerlingguy/drupal-vm" # Load the real Vagrantfile load "#{__dir__}/#{ENV['DRUPALVM_DIR']}/Vagrantfile" + +# Set up vagrant exec for BLT. +if Vagrant.has_plugin?('vagrant-exec') + config.exec.commands '*', directory: /var/www/${project.machine_name} +end