install-eg.sh: install script for generating popularity badge scores
[sitka/sitka-tools.git] / deployment / install-drone.sh
... / ...
CommitLineData
1#!/bin/bash
2# IMPORTANT! This script assumes you have already installed OpenSRF on the brick head.
3DEFAULT_USER="sitkastaff"
4HOMEDIR="/home/${DEFAULT_USER}"
5OSRFBUILDDIR="${HOMEDIR}/opensrf"
6EGBUILDDIR="${HOMEDIR}/evergreen"
7INSTALLDIR="/srv/openils"
8OSRFBRANCH="rel_2_3"
9VERSION="2.6.0.sitka.0"
10STAMP_ID="2_6_0_sitka_0"
11OSRFDESTDIR="/tmp/osrf-${OSRFBRANCH}-install"
12EGDESTDIR="/tmp/${STAMP_ID}-install"
13
14# OPENSRF
15# ----------------------------------------------------------------------
16
17apt-get install git-core build-essential translate-toolkit python-polib bsdmainutils
18
19echo "Installing OpenSRF prerequisites for Ubuntu..."
20cd ${OSRFBUILDDIR} && make -f src/extras/Makefile.install ubuntu-precise
21
22echo "Installing OpenSRF..."
23cd ${OSRFBUILDDIR} && make install DESTDIR=${OSRFDESTDIR}
24rsync -av ${OSRFDESTDIR}/usr/ /usr/
25echo "ldconfig stuff..."
26echo "${INSTALLDIR}/lib" > /etc/ld.so.conf.d/opensrf.conf
27ldconfig
28
29# EVERGREEN
30# ----------------------------------------------------------------------
31
32cd ${EGBUILDDIR} && make -f Open-ILS/src/extras/Makefile.install ubuntu-precise
33# by default, CPAN needs some manual input at this point; you can just accept all defaults
34
35cd ${EGBUILDDIR} && make DESTDIR=${EGDESTDIR} STAFF_CLIENT_STAMP_ID=${STAMP_ID} STAFF_CLIENT_VERSION=${VERSION} install
36rsync -av ${EGDESTDIR}/usr/ /usr/
37