From b5d527abcc4516ce797ae037e8e74d78fd34e35a Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 30 Oct 2015 18:21:26 +0100 Subject: krebs 4 infest prepare.sh: add centos 6 support --- krebs/4lib/infest/prepare.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'krebs/4lib/infest/prepare.sh') diff --git a/krebs/4lib/infest/prepare.sh b/krebs/4lib/infest/prepare.sh index 94c9b0fb..8e922ed9 100644 --- a/krebs/4lib/infest/prepare.sh +++ b/krebs/4lib/infest/prepare.sh @@ -11,6 +11,10 @@ prepare() {( ;; centos) case $VERSION_ID in + 6) + prepare_centos "$@" + exit + ;; 7) prepare_centos "$@" exit -- cgit v1.2.3 From 885c284dd51cb28441bf5ad8353639110b0db9d8 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 30 Oct 2015 18:22:25 +0100 Subject: krebs 4 infest prepare.sh: add support for debian --- krebs/4lib/infest/prepare.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'krebs/4lib/infest/prepare.sh') diff --git a/krebs/4lib/infest/prepare.sh b/krebs/4lib/infest/prepare.sh index 8e922ed9..8297ba1e 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 -- cgit v1.2.3 From ce08a1c112acb69f42814036e99b292e912291d1 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 30 Oct 2015 18:22:56 +0100 Subject: krebs 4 infest prepare.sh: update pacman database --- krebs/4lib/infest/prepare.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'krebs/4lib/infest/prepare.sh') diff --git a/krebs/4lib/infest/prepare.sh b/krebs/4lib/infest/prepare.sh index 8297ba1e..182a068e 100644 --- a/krebs/4lib/infest/prepare.sh +++ b/krebs/4lib/infest/prepare.sh @@ -47,6 +47,7 @@ prepare() {( )} prepare_arch() { + pacman -Sy type bzip2 2>/dev/null || pacman -S --noconfirm bzip2 type git 2>/dev/null || pacman -S --noconfirm git type rsync 2>/dev/null || pacman -S --noconfirm rsync -- cgit v1.2.3