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