From cc538a66dffe40de6bc699363dae4d80ea1aa149 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 30 Dec 2013 03:46:31 +0100 Subject: //infest/bootstrap.sh -> //ship/src --- ship/src/get_repo | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ship/src/get_repo (limited to 'ship/src/get_repo') diff --git a/ship/src/get_repo b/ship/src/get_repo new file mode 100644 index 00000000..5476e650 --- /dev/null +++ b/ship/src/get_repo @@ -0,0 +1,22 @@ +#!/bin/sh +#@info +#@strict +#@include punani +# Can be overwritten before install + +KREBSDIR=${KREBSDIR:-/krebs} +( is_root || ! test "$KREBSDIR" = "/krebs" ) || die "not running as root, stuff may not work. change KREBSDIR env to bootstrap somewhere else!"; + +info "installing git to clone repo" +punani install git + +[ -e "$KREBSDIR" ] && die "krebs dir already exists" + +git clone --depth 1 https://github.com/krebscode/painload.git "$KREBSDIR" || die "cloning failed :(" + +cd $KREBSDIR || die "cannot change into $KREBSDIR folder:(" ; + +info "installing make" +punani install make + +info "have a nice day" -- cgit v1.2.3