aboutsummaryrefslogtreecommitdiffstats
path: root/script/bootstrap
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2020-09-29 14:23:52 +0200
committerMarius Halden <marius.h@lden.org>2020-09-29 14:23:52 +0200
commita27ce1524d801d2742a2bdb6ec1da45126d64353 (patch)
tree64123c4e17dc1776aa0a7cd65ee01d49d3e7d978 /script/bootstrap
parent377bd96aab7cad3434185c30eb908c9da447fe40 (diff)
parent2773c60226b9370fe8ee00f7b205b571bb87c3b5 (diff)
Merge tag 'v3.0.1' into fiksgatami-dev
Diffstat (limited to 'script/bootstrap')
-rwxr-xr-xscript/bootstrap13
1 files changed, 13 insertions, 0 deletions
diff --git a/script/bootstrap b/script/bootstrap
index dfebd7449..f40e97b18 100755
--- a/script/bootstrap
+++ b/script/bootstrap
@@ -4,4 +4,17 @@ 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