aboutsummaryrefslogtreecommitdiffstats
path: root/bin/install_packages
diff options
context:
space:
mode:
Diffstat (limited to 'bin/install_packages')
-rwxr-xr-xbin/install_packages13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/install_packages b/bin/install_packages
new file mode 100755
index 000000000..7b4bfd8e1
--- /dev/null
+++ b/bin/install_packages
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -e
+
+cd "$(dirname "${BASH_SOURCE[0]}")/.."
+
+PACKAGE_FILE=conf/packages
+
+[ -n "$1" ] && PACKAGE_FILE="conf/packages.${1}"
+
+apt-get update
+
+grep -v ^# $PACKAGE_FILE | grep -v ^$ | xargs apt-get install -qq -y
+