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