aboutsummaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-13 13:55:10 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-15 11:49:00 +0100
commit1243e701620d71dfcf0eedb880f40e7fef59415d (patch)
tree7e50d417393c2426b57a74191ee7200f3477f2fe /Vagrantfile
parent67823bc788ce744e1228a8602b9a5aa805771ced (diff)
Do not have bootstrap run sudo commands.
Your site user may not have access to sudo, and your admin user may cause permission issues if used to do the git checkout, or the Perl module installation. Document the separate script to install system packages instead. Co-authored-by: Sam Pearson <sam@mysociety.org>
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 17eebe4b5..a69b58b11 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -60,6 +60,9 @@ EOS
# This just runs our update script, used on our offical box.
$update = <<-EOS
chown -R vagrant:vagrant /home/vagrant/.cpanm
+ # Ensure any new packages are installed
+ /home/vagrant/fixmystreet/bin/install_packages
+ # Run setup script
su vagrant -c '/home/vagrant/fixmystreet/script/setup ; exit $?'
if [ $? -eq 0 ]; then
touch /tmp/success