aboutsummaryrefslogtreecommitdiffstats
path: root/script/bootstrap
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 /script/bootstrap
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 'script/bootstrap')
-rwxr-xr-xscript/bootstrap13
1 files changed, 0 insertions, 13 deletions
diff --git a/script/bootstrap b/script/bootstrap
index f40e97b18..dfebd7449 100755
--- a/script/bootstrap
+++ b/script/bootstrap
@@ -4,17 +4,4 @@ set -e
cd "$(dirname "$0")/.."
git submodule --quiet update --init --recursive --rebase
-
-if [ -z ${SKIP_PACKAGES_INSTALL:+x} ] ; then
- # Let's see if we can't work out where we might be running.
- if cut -d/ -f2 /proc/self/cgroup | sort -u | grep -q docker ; then
- echo "==> Installing Docker packages..."
- sudo bin/install_packages docker
- else
- # Fallback
- echo "==> Installing generic packages..."
- sudo bin/install_packages generic
- fi
-fi
-
bin/install_perl_modules