diff options
author | Sam Pearson <sam@sgp.me.uk> | 2018-11-05 13:16:10 +0000 |
---|---|---|
committer | Sam Pearson <sam@sgp.me.uk> | 2018-11-05 13:27:02 +0000 |
commit | 94c761fc5eb91fa7b558f0c8e8bdbff4f34e2ac7 (patch) | |
tree | 2776a78ae739c965c29e9f8273fcfe5b13f9bff8 /Vagrantfile | |
parent | 738f832405561690da3c2ad7b94b7c87c556dafc (diff) |
[Vagrant] Check and generate config file if necessary
This adds support in `script/setup` for generating a local `general.yml`
if it doesn't already exist and is run as the `vagrant` user. This is
called from the `Vagrantfile` when using the FixMyStreet Vagrant box.
[skip ci]
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile index 6873ace46..0fc6f29cf 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -55,7 +55,7 @@ EOS # This just runs our update script, used on our offical box. $update = <<-EOS chown -R vagrant:vagrant /home/vagrant/.cpanm - su vagrant -c '/home/vagrant/fixmystreet/script/update ; exit $?' + su vagrant -c '/home/vagrant/fixmystreet/script/setup ; exit $?' if [ $? -eq 0 ]; then touch /tmp/success else |