summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-10-30 18:22:25 +0100
committerlassulus <lass@aidsballs.de>2015-10-30 18:22:25 +0100
commit885c284dd51cb28441bf5ad8353639110b0db9d8 (patch)
tree3e9e435857b07b86c6ddc1e4a510f56c221c1c46
parentb5d527abcc4516ce797ae037e8e74d78fd34e35a (diff)
krebs 4 infest prepare.sh: add support for debian
-rw-r--r--krebs/4lib/infest/prepare.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/krebs/4lib/infest/prepare.sh b/krebs/4lib/infest/prepare.sh
index 8e922ed99..8297ba1e6 100644
--- a/krebs/4lib/infest/prepare.sh
+++ b/krebs/4lib/infest/prepare.sh
@@ -21,6 +21,18 @@ prepare() {(
;;
esac
;;
+ debian)
+ case $VERSION_ID in
+ 7)
+ prepare_debian "$@"
+ exit
+ ;;
+ 8)
+ prepare_debian "$@"
+ exit
+ ;;
+ esac
+ ;;
esac
elif test -e /etc/centos-release; then
case $(cat /etc/centos-release) in
@@ -48,6 +60,14 @@ prepare_centos() {
prepare_common
}
+prepare_debian() {
+ apt-get update
+ type bzip2 2>/dev/null || apt-get install bzip2
+ type git 2>/dev/null || apt-get install git
+ type rsync 2>/dev/null || apt-get install rsync
+ prepare_common
+}
+
prepare_common() {
if ! getent group nixbld >/dev/null; then