diff options
author | Sam Pearson <sam@sgp.me.uk> | 2018-10-02 11:24:19 +0100 |
---|---|---|
committer | Sam Pearson <sam@sgp.me.uk> | 2018-10-02 11:28:27 +0100 |
commit | 0d5cd3beb1aac885614fa3ca19a7e6c054bad65c (patch) | |
tree | 4be72168d0293f250731147ad224492c321a3fd6 | |
parent | 27811a48bc63b05973f537ade7e09d5c10a2dde6 (diff) |
[Vagrant] Ensure `local` directory is present
When using the mySociety Vagrant box, ensure that the `local/` directory
is present before attempting to bind mount the pre-built Perl modules.
Without this directory present the bind mount will fail and the Perl
modules will all be built again unnecessarily.
-rw-r--r-- | Vagrantfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile index c8647b270..c2faf4d6a 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -27,6 +27,7 @@ $setup = <<-EOS cd fixmystreet git submodule --quiet update --init --recursive --rebase if [ "$BASEBOX" = "mysociety/fixmystreet" ]; then + [ ! -e /home/vagrant/fixmystreet/local ] && mkdir /home/vagrant/fixmystreet/local mount -o bind /usr/share/fixmystreet/local /home/vagrant/fixmystreet/local chown -R vagrant:vagrant /home/vagrant/fixmystreet/local fi |