From 35a11c313cce6d0770a0f6f30111bd8683ad8ac1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 8 Jan 2020 16:06:25 +0100 Subject: [SSPS] Install jawol --- satellit_installer/includes/50-install_jawol.inc | 12 ++++++++++++ satellit_installer/satellit_installer | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 satellit_installer/includes/50-install_jawol.inc diff --git a/satellit_installer/includes/50-install_jawol.inc b/satellit_installer/includes/50-install_jawol.inc new file mode 100644 index 0000000..8c50e6c --- /dev/null +++ b/satellit_installer/includes/50-install_jawol.inc @@ -0,0 +1,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 +} + diff --git a/satellit_installer/satellit_installer b/satellit_installer/satellit_installer index 61065aa..c113680 100755 --- a/satellit_installer/satellit_installer +++ b/satellit_installer/satellit_installer @@ -133,6 +133,8 @@ install_dnbd3-server "$DNBD3DIR" install_taskmanager "$TASKMANDIR" +install_jawol "/usr/local/sbin" + # $1: tar.gz-file, $2: unpacking to directory unpack_tar_gz "$BASEDIR/static_files/slx-admin.tar.gz" "-C $WWWDIR/slx-admin" unpack_tar_gz "$BASEDIR/static_files/openslx_tftp.tar.gz" "-C $TFTPDIR" -- cgit v1.2.3-55-g7522