summaryrefslogblamecommitdiffstats
path: root/satellit_installer/includes/50-install_jawol.inc
blob: 8c50e6c58a51bebbcc6c4330730210aea742daff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                                     
install_jawol() {
	# $1: directory to install jawol to
	echo "# Installing jawol.. "
	mkdir -p "$1" || perror "mkdir '$1' failed"
	mkdir -p "$BASEDIR/tmp"
	git clone https://git.openslx.org/openslx-ng/jawol.git "$BASEDIR/tmp/jawol" || perror "Could not clone jawol"
	cd "$BASEDIR/tmp/jawol"
	make || perror "Building jawol failed"
	cp -f jawol "$1/" || perror "Could not copy jawol-server binary to $1"
	cd - &>/dev/null
}