aboutsummaryrefslogtreecommitdiffstats
path: root/docs/updating/index.md
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 /docs/updating/index.md
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 'docs/updating/index.md')
-rw-r--r--docs/updating/index.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/updating/index.md b/docs/updating/index.md
index 2ab8ed6f5..ea1ce72cd 100644
--- a/docs/updating/index.md
+++ b/docs/updating/index.md
@@ -53,12 +53,13 @@ you are too worried to merge in case it breaks something.
## Subsequent dependency updates
-After updating the code, you should run the following command to update any
+After updating the code, you should run the following commands to update any
needed dependencies and any schema changes to your database. It's a good idea
to take a backup of your database first.
{% highlight bash %}
-script/update
+sudo bin/install_packages # (as your admin user)
+script/update # (as the fms user)
{% endhighlight %}
Of course, if you have made changes to the database schema yourself, this may