diff options
author | Simon Rettberg | 2015-05-08 16:45:55 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-05-08 16:45:55 +0200 |
commit | ff1d315ded71a4ca9e2be9a4e0188a69e322f386 (patch) | |
tree | 0d57a8de956a290d5c2d1f087b087db4ce2edb1b /satellit_installer/includes/50-install_ldadp.inc | |
parent | [SSPS] Patch ldap.conf for ldapsearch (diff) | |
download | setup-scripts-ff1d315ded71a4ca9e2be9a4e0188a69e322f386.tar.gz setup-scripts-ff1d315ded71a4ca9e2be9a4e0188a69e322f386.tar.xz setup-scripts-ff1d315ded71a4ca9e2be9a4e0188a69e322f386.zip |
[SSPS] Add ldadp compile and install logic
Diffstat (limited to 'satellit_installer/includes/50-install_ldadp.inc')
-rw-r--r-- | satellit_installer/includes/50-install_ldadp.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/satellit_installer/includes/50-install_ldadp.inc b/satellit_installer/includes/50-install_ldadp.inc new file mode 100644 index 0000000..9dc4847 --- /dev/null +++ b/satellit_installer/includes/50-install_ldadp.inc @@ -0,0 +1,15 @@ +install_ldadp() { + # $1: directory to install server to + local DIR="$1" + [ -z "$DIR" ] && perror "Pass dir to install_ldadp!" + echo "# Installing ldadp... " + git clone --depth 1 git://git.openslx.org/openslx-ng/ldadp.git ldadptmp || perror "Could not clone ldadp repo" + cd ldadptmp || perror "Could not cd to ldadptmp" + make || perror "Could not compile ldadp" + mkdir -p "$DIR" || perror "Could not create $DIR" + cp ldadp "$DIR" || perror "Could not copy ldadp binary to $DIR" + cd .. || perror "Could not cd .." + rm -r ldadptmp # Should we care if fail? + return 0 +} + |