From 1243e701620d71dfcf0eedb880f40e7fef59415d Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 13 Jul 2020 13:55:10 +0100 Subject: 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 --- script/bootstrap | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'script/bootstrap') 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 -- cgit v1.2.3