summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/50-install_jawol.inc
diff options
context:
space:
mode:
authorSimon Rettberg2020-01-08 16:06:25 +0100
committerSimon Rettberg2020-01-08 16:06:25 +0100
commit35a11c313cce6d0770a0f6f30111bd8683ad8ac1 (patch)
treeeff98d38fae7f840781601914296162f5f26891b /satellit_installer/includes/50-install_jawol.inc
parent[SSPS] Add missing chown (diff)
downloadsetup-scripts-35a11c313cce6d0770a0f6f30111bd8683ad8ac1.tar.gz
setup-scripts-35a11c313cce6d0770a0f6f30111bd8683ad8ac1.tar.xz
setup-scripts-35a11c313cce6d0770a0f6f30111bd8683ad8ac1.zip
[SSPS] Install jawol
Diffstat (limited to 'satellit_installer/includes/50-install_jawol.inc')
-rw-r--r--satellit_installer/includes/50-install_jawol.inc12
1 files changed, 12 insertions, 0 deletions
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
+}
+