Exclude "Adult New Books Shelf" from BT MARC exports, per RT#48111
[sitka/sitka-tools.git] / deployment / install-eg.sh
CommitLineData
0155bbac
JD
1#!/bin/bash
2# IMPORTANT! This script assumes you have already installed OpenSRF.
3
79b2efa0 4HOSTNAME="nonprod"
0155bbac 5DEFAULT_USER="sitkastaff"
bd4a0e27 6INSTALL_USER="opensrf"
bd4a0e27 7#EGRELEASE="Evergreen-ILS-2.12.beta"
9bb70e10 8#BUILDDIR="/home/${INSTALL_USER}/${EGRELEASE}"
9BUILDDIR="/home/${INSTALL_USER}/evergreen"
0155bbac 10INSTALLDIR="/srv/openils"
15641461 11BRANCH="production/sitka_2_12_tpac"
f930a1d1
JD
12STAMP_ID="rel_2_12_1"
13ALT_STAMP_IDS="2_12_1 rel_2_12_0 2_12_0 rel_2_12_beta 2_12_beta"
14VERSION="2.12.1.sitka.0"
9bb70e10 15SITKACONF="/home/${DEFAULT_USER}/sysadmin"
a42f2670 16SITKACONF_BRANCH="master"
341cf34e 17SITKATOOLS="/root/sitka-tools"
0155bbac 18
605401cc
JD
19THISHOST=`hostname -s`
20
e724d7db 21suwrap() {
e2ad4781 22 su -s /bin/bash -c "source ~/.bashrc ; $1" $2
e724d7db
JD
23}
24
47b1b144 25while getopts ":pecw" opt ; do
24057702
JD
26 case $opt in
27 p ) PROD="prod";;
f3b555fc 28 e ) EDI="edi";;
286e0b2b 29 c ) CRONTAB="crontab";;
676b054f 30 w ) WEBCLIENT="webclient";;
24057702
JD
31 esac
32done
33shift $(($OPTIND - 1))
34
35if [[ -n "$PROD" ]] ; then
36 echo 'this is a production install'
34f86bbc 37 [ "$HOSTNAME" == "nonprod" ] && HOSTNAME="prod"
24057702
JD
38else
39 echo 'this is NOT a production install'
40fi
41
0155bbac
JD
42# as DEFAULT_USER
43
44# grab Sitka config files
45if [ ! -d "${SITKACONF}" ]
46then
47 # this will fail unless DEFAULT_USER has read access to the repo
9bb70e10 48 suwrap "cd /home/${DEFAULT_USER} && git clone git+ssh://git@git.sitka.bclibraries.ca/sitka-infra/sysadmin" ${DEFAULT_USER}
0155bbac 49fi
902a19b7 50suwrap "cd ${SITKACONF} && git fetch origin && git checkout ${SITKACONF_BRANCH} && git pull" ${DEFAULT_USER}
0155bbac
JD
51
52# checkout EG source
ae9cb412
JD
53if [ ! -d "${BUILDDIR}" ]
54then
9bb70e10 55 suwrap "cd /home/${INSTALL_USER} && git clone git://git.sitka.bclibraries.ca/sitka/evergreen evergreen" ${INSTALL_USER}
ae9cb412 56fi
bd4a0e27 57suwrap "cd ${BUILDDIR} && git fetch origin && git checkout ${BRANCH} && git pull" ${INSTALL_USER}
71f85432
JD
58
59# download and unpack EG release
ae9cb412 60#rm -rf ${BUILDDIR}
9bb70e10 61#suwrap "cd /home/${INSTALL_USER} && wget http://open-ils.org/downloads/${EGRELEASE}.tar.gz && tar xzf ${EGRELEASE}.tar.gz" ${INSTALL_USER}
0155bbac
JD
62
63# as root
71f85432 64cd ${BUILDDIR} && make -f Open-ILS/src/extras/Makefile.install ubuntu-trusty
676b054f
JD
65if [[ -n "$WEBCLIENT" ]] ; then
66 cd ${BUILDDIR} && make -f Open-ILS/src/extras/Makefile.install ubuntu-trusty-developer # required for web client
67fi
0155bbac
JD
68# by default, CPAN needs some manual input at this point; you can just accept all defaults
69
a4d987d6 70# web client
71if [[ -n "$WEBCLIENT" ]] ; then
72 cd ${BUILDDIR}/Open-ILS/web/js/ui/default/staff/
73 suwrap "npm install" ${INSTALL_USER}
74 suwrap "bower install" ${INSTALL_USER}
75 suwrap "grunt all" ${INSTALL_USER} || { echo 'Could not install files for web-based staff client' ; exit 1; }
76fi
77
bd4a0e27
JD
78# as INSTALL_USER
79suwrap "cd ${BUILDDIR} && autoreconf -i" ${INSTALL_USER} # not required for release versions
80suwrap "PATH=${INSTALLDIR}/bin:\$PATH cd ${BUILDDIR} && PATH=${INSTALLDIR}/bin:\$PATH ./configure -C --prefix=${INSTALLDIR} --sysconfdir=${INSTALLDIR}/conf --with-opensrf-headers=${INSTALLDIR}/include/ --with-opensrf-libs=${INSTALLDIR}/lib/" ${INSTALL_USER}
81suwrap "cd ${BUILDDIR} && make" ${INSTALL_USER}
82suwrap "cd ${BUILDDIR}/build/i18n && make LOCALE=fr-CA install && make LOCALE=en-CA install" ${INSTALL_USER}
0155bbac
JD
83
84# as root
4115cc36 85cd ${BUILDDIR} && make STAFF_CLIENT_VERSION=${VERSION} STAFF_CLIENT_STAMP_ID=${STAMP_ID} install
ae9cb412 86mv ${INSTALLDIR}/var/web/reports/fm_IDL.xml ${INSTALLDIR}/var/web/reports/fm_IDL.xml.orig && cp ${INSTALLDIR}/conf/fm_IDL.xml ${INSTALLDIR}/var/web/reports/
0155bbac
JD
87
88# Apache stuff (as root):
a4d987d6 89APACHEFILES="/etc/apache2/eg_vhost.conf /etc/apache2/eg_startup /etc/apache2/envvars /etc/apache2/mods-available/mpm_prefork.conf"
0155bbac
JD
90for APACHEFILE in ${APACHEFILES}
91do
a4d987d6 92 [[ -e "${APACHEFILE}" ]] && mv ${APACHEFILE} ${APACHEFILE}.`date +%Y-%m-%d-%H%M%S`
40ce1f36 93 cp ${SITKACONF}/files/${APACHEFILE}/${HOSTNAME} ${APACHEFILE}
0155bbac 94done
a4d987d6 95a2dismod mpm_event
96a2enmod mpm_prefork
71f85432
JD
97# ensure opensrf can run Apache
98chown -R opensrf:opensrf /var/lock/apache2
7d30f3bf 99
605401cc
JD
100# More Apache stuff for non-production sites (we manage this with Puppet on prod)
101if [[ ! -n "$PROD" ]] ; then
09cde232
JD
102 if [ ! -d "/etc/apache2/includes" ] ; then
103 mkdir /etc/apache2/includes
104 fi
3148afad 105 SITECONFIGS="/etc/apache2/includes/498-ssl-star.catalogue.libraries.coop-include /etc/apache2/includes/499-rewrites.conf-include /etc/apache2/includes/default.conf-include /etc/apache2/sites-available/eg.conf /etc/apache2/sites-available/499-star.catalogue.libraries.coop.conf /etc/apache2/sites-available/test-server.conf"
605401cc
JD
106 for SITECONFIG in ${SITECONFIGS} ; do
107 mv ${SITECONFIG} ${SITECONFIG}.bak
108 cp ${SITKACONF}/files/${SITECONFIG}/${HOSTNAME} ${SITECONFIG}
109 sed -i "s|__NONPROD__|${THISHOST}|g" ${SITECONFIG}
3148afad 110 sed -i "s|__VERSION__|${VERSION}|g" ${SITECONFIG}
605401cc 111 done
884250a7
JD
112 if [ ! -d "/etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop" ]
113 then
114 mkdir -p /etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop
115 cp ${SITKACONF}/files/etc/ssl/apache2/star.catalogue.libraries.coop/star.catalogue.libraries.coop.crt /etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop/star_catalogue_libraries_coop.crt
116 cp ${SITKACONF}/files/etc/ssl/apache2/star.catalogue.libraries.coop/star.catalogue.libraries.coop.key /etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop/star_catalogue_libraries_coop.key
117 cp ${SITKACONF}/files/etc/ssl/apache2/star.catalogue.libraries.coop/star.catalogue.libraries.coop.ca /etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop/star_catalogue_libraries_coop.ca
118 fi
605401cc 119 a2ensite eg.conf
077e0b77 120 a2ensite 499-star.catalogue.libraries.coop.conf
3148afad 121 a2ensite test-server.conf
605401cc
JD
122fi
123
7b2b5e72
JD
124# websockets config
125if [[ -n "$WEBCLIENT" ]] ; then
126 # use nginx proxy for websockets traffic
127 apt-get install -y nginx
cd706301 128 cp -b ${SITKACONF}/files/etc/nginx/sites-available/osrf-ws-http-proxy/${HOSTNAME} /etc/nginx/sites-available/osrf-ws-http-proxy
7b2b5e72
JD
129 ln -s /etc/nginx/sites-available/osrf-ws-http-proxy /etc/nginx/sites-enabled/osrf-ws-http-proxy
130 rm /etc/nginx/sites-enabled/default
131 cp -b ${SITKACONF}/files/etc/apache2/ports.conf/${HOSTNAME} /etc/apache2/ports.conf
132 WSJSFILES="opensrf_ws.js opensrf_ws_shared.js"
133 for WSJSFILE in ${WSJSFILES} ; do
134 # NOTE: this should be unnecessary if we installed OpenSRF with ./configure --with-websockets-port=443
135 sed -i 's/var WEBSOCKET_PORT_SSL = 7682;/var WEBSOCKET_PORT_SSL = 443;/g' ${INSTALLDIR}/lib/javascript/$WSJSFILE
136 done
137 # apache2-websockets
138 if [[ ! -n "$PROD" ]] ; then
139 if [ ! -d "/etc/apache2-websockets/ssl" ] ; then
140 cd /etc/apache2-websockets/ && ln -s /etc/apache2/ssl
141 fi
7b2b5e72 142 fi
e4d4fe00 143 if [ ! -d "/etc/apache2-websockets/includes" ] ; then
144 mkdir /etc/apache2-websockets/includes
145 fi
146 for WSINCLUDE in `ls /etc/apache2/includes` ; do
147 ln -s /etc/apache2/includes/${WSINCLUDE} /etc/apache2-websockets/includes/
148 done
149 for WSSITE in `ls /etc/apache2/sites-available` ; do
150 ln -s /etc/apache2/sites-available/${WSSITE} /etc/apache2-websockets/sites-available/
151 ln -s /etc/apache2-websockets/sites-available/${WSSITE} /etc/apache2-websockets/sites-enabled/
152 done
7b2b5e72
JD
153fi
154
286e0b2b
JD
155# install default crontab, if specified
156if [[ -c "$CRONTAB" ]]; then
157 if [ ! -f "/etc/cron.d/evergreen-dailies" ] ; then
158 cp ${SITKACONF}/files/etc/cron.d/evergreen-dailies/${HOSTNAME} /etc/cron.d/evergreen-dailies
159 fi
160fi
161
26b3ea66 162# set up log rotation
702f0bd2
JD
163if [[ ! -n "$PROD" ]] ; then
164 if [ ! -f "/etc/logrotate.d/evergreen" ]
165 then
166 cp ${SITKACONF}/files/etc/logrotate.d/evergreen/${HOSTNAME} /etc/logrotate.d/evergreen
167 fi
26b3ea66 168fi
bcd0a18c
JD
169
170# action trigger filters (prod only)
171if [[ -n "$PROD" ]] ; then
172 if [ -f "${INSTALLDIR}/conf/action_trigger_filters.json" ] ; then
173 mv ${INSTALLDIR}/conf/action_trigger_filters.json ${INSTALLDIR}/conf/action_trigger_filters.json.`date +%Y-%m-%d-%H%M%S`
174 fi
175 cp ${SITKACONF}/files/${INSTALLDIR}/conf/action_trigger_filters.json/${HOSTNAME} ${INSTALLDIR}/conf/action_trigger_filters.json
176fi
0155bbac 177
0155bbac
JD
178# 0. osrf conf stuff
179# FIXME: ensure osrf conf files point at a real, distinct db!
180OSRFCONFFILES="${INSTALLDIR}/conf/opensrf.xml ${INSTALLDIR}/conf/opensrf_core.xml"
181for OSRFCONFFILE in ${OSRFCONFFILES}
182do
40ce1f36
JD
183 mv ${OSRFCONFFILE} ${OSRFCONFFILE}.`date +%Y-%m-%d-%H%M%S`
184 cp ${SITKACONF}/files/${OSRFCONFFILE}/${HOSTNAME} ${OSRFCONFFILE}
185 sed -i "s|__HOSTNAME__|${THISHOST}|g" ${OSRFCONFFILE}
0155bbac 186done
661d99f4 187if [ ! -f "/home/opensrf/.srfsh.xml" ]
9d46f12d 188then
661d99f4 189 cp ${SITKACONF}/files/home/opensrf/.srfsh.xml/${HOSTNAME} /home/opensrf/.srfsh.xml
9d46f12d
JD
190fi
191
0155bbac 192# 1. install dojo
abcafeff 193if [ ! -f "/home/opensrf/dojo-release-1.3.3.tar.gz" ]
51a4755a
JD
194then
195 cd /home/opensrf && wget http://download.dojotoolkit.org/release-1.3.3/dojo-release-1.3.3.tar.gz
196fi
0155bbac
JD
197tar -C ${INSTALLDIR}/var/web/js -xzf /home/opensrf/dojo-release-1.3.3.tar.gz
198cp -r ${INSTALLDIR}/var/web/js/dojo-release-1.3.3/* ${INSTALLDIR}/var/web/js/dojo/.
4b074e2e
JD
199# FIXME stock dojo is probably superfluous when we use the following Evergreen-specific tarball...
200if [ ! -f "/home/opensrf/dojo.tgz" ] ; then
201 cd /home/opensrf && wget http://evergreen-ils.org/downloads/dojo.tgz
202fi
203tar -C ${INSTALLDIR}/var/web/js/dojo/ -zxf /home/opensrf/dojo.tgz
0155bbac
JD
204
205# 2. set up staff client
9d46f12d 206cd ${INSTALLDIR}/var/web/xul && rm server && rm current
0155bbac 207cd ${INSTALLDIR}/var/web/xul && ln -s ${STAMP_ID} current && ln -s current/server server
03b5e41f
JD
208for ALT_STAMP_ID in ${ALT_STAMP_IDS}
209do
210 cd ${INSTALLDIR}/var/web/xul && ln -s current ${ALT_STAMP_ID}
211done
0155bbac 212
9d46f12d 213# 3. install circ scripts and opac skins - DEPRECATED
71f85432 214
96b76bbb
JD
215# 4a. avoid 404s
216touch ${INSTALLDIR}/var/web/css/skin/default/register_custom.css
217touch ${INSTALLDIR}/var/web/xul/server/locale/en-CA/patron_custom.properties
218touch ${INSTALLDIR}/var/web/xul/server/locale/en-CA/common_custom.properties
219touch ${INSTALLDIR}/var/web/xul/server/locale/en-CA/offline_custom.properties
220touch ${INSTALLDIR}/var/web/xul/server/locale/en-CA/auth_custom.properties
221touch ${INSTALLDIR}/var/web/xul/server/locale/en-CA/cat_custom.properties
222touch ${INSTALLDIR}/var/web/xul/server/locale/en-CA/circ_custom.properties
223touch ${INSTALLDIR}/var/web/xul/server/locale/en-US/patron_custom.properties
224touch ${INSTALLDIR}/var/web/xul/server/locale/en-US/common_custom.properties
225touch ${INSTALLDIR}/var/web/xul/server/locale/en-US/offline_custom.properties
226touch ${INSTALLDIR}/var/web/xul/server/locale/en-US/auth_custom.properties
227touch ${INSTALLDIR}/var/web/xul/server/locale/en-US/cat_custom.properties
228touch ${INSTALLDIR}/var/web/xul/server/locale/en-US/circ_custom.properties
229touch ${INSTALLDIR}/var/web/xul/server/skin/custom.js
230
231# 4b. workaround for LP#1461683
232cd ${INSTALLDIR}/var/web/xul/server/locale/en-CA && mv multiclass_search_help.html multiclass_search_help.html.orig && ln -s ../en-US/multiclass_search_help.html
71f85432
JD
233
234# 5. locale hack - XXX deprecated?
235#cd ${INSTALLDIR}/var/web/opac/locale && cp -fdr en-US en-US-bak && cp -fdr en-CA en-US
0155bbac
JD
236
237# 6. deletepatron
238# ensure apache conf contains deletepatron config (location should be ${INSTALLDIR}/var/web/deletepatron)
437b75c1
JD
239if [[ ! -d "${INSTALLDIR}/var/web/deletepatron" ]] ; then
240 NEW_DELETEPATRON_INSTALL="true"
241 cd ${INSTALLDIR}/var/web && git clone https://github.com/twirlip/deletepatron.git
242fi
243cd ${INSTALLDIR}/var/web/deletepatron && git checkout eg22
244if [[ -n "$NEW_DELETEPATRON_INSTALL" ]] ; then
245 find ${INSTALLDIR}/var/web/deletepatron -name "*.pm" | xargs sed -i -e 's|/openils|/srv/openils|g'
246fi
ae9cb412 247apt-get install -y libcgi-session-perl libhtml-template-perl
0155bbac 248
f3b555fc
JD
249# 7. support scripts
250cp ${BUILDDIR}/Open-ILS/src/support-scripts/generate_circ_notices.pl ${INSTALLDIR}/bin
22b9d1ac 251cp ${BUILDDIR}/Open-ILS/src/support-scripts/oils_header.pl ${INSTALLDIR}/bin
9c35266e 252cp ${BUILDDIR}/Open-ILS/src/support-scripts/badge_score_generator.pl ${INSTALLDIR}/bin
f3b555fc
JD
253
254# 7.5 EDI (optional)
255if [[ -n "$EDI" ]] ; then
256 cp -r ${BUILDDIR}/Open-ILS/src/edi_translator ${INSTALLDIR}/var/edi
257 cd ${INSTALLDIR}/var/edi && ./install.sh
258 cp ${BUILDDIR}/Open-ILS/src/support-scripts/edi_pusher.pl ${INSTALLDIR}/bin
259 cp ${BUILDDIR}/Open-ILS/src/support-scripts/edi_fetcher.pl ${INSTALLDIR}/bin
260 cp ${SYSADMIN}/files/${INSTALLDIR}/bin/edi_per_account_fetcher.sh ${INSTALLDIR}/bin/edi_per_account_fetcher.sh
261fi
0155bbac 262
c05e3516
JD
263# 8. setup start page
264if [ ! -d "${INSTALLDIR}/var/web/news" ]
265then
266 mkdir ${INSTALLDIR}/var/web/news
267fi
24057702
JD
268if [ ! -d "${INSTALLDIR}/var/web/news/media" ]
269then
270 mkdir ${INSTALLDIR}/var/web/news/media
271fi
272NEWSFILES="index.html style.css media/logo.png media/book.png media/policy.png media/dash.png media/delete.png"
c05e3516
JD
273for NEWSFILE in ${NEWSFILES}
274do
275 if [ -f "${SITKACONF}/files/${INSTALLDIR}/var/web/news/${NEWSFILE}/${HOSTNAME}" ]
276 then
277 cp ${SITKACONF}/files/${INSTALLDIR}/var/web/news/${NEWSFILE}/${HOSTNAME} ${INSTALLDIR}/var/web/news/${NEWSFILE}
278 fi
279done
24057702
JD
280if [[ -n "$PROD" ]] ; then
281 if [ ! -e "${INSTALLDIR}/var/web/news/wikipull.pl" ] ; then cp ${SITKACONF}/files/${INSTALLDIR}/var/web/news/wikipull.pl/${HOSTNAME} ${INSTALLDIR}/var/web/news/wikipull.pl ; fi
282 if [ ! -e "/etc/cron.d/news" ] ; then cp ${SITKACONF}/files/etc/cron.d/news/${HOSTNAME} /etc/cron.d/news ; fi
5edb204e
JD
283else
284 # nonprod server, auto-update splash page with install info
5edb204e 285 TODAY=`date +'%A %d %B %Y'`
605401cc
JD
286 sed -i "s|__THISHOST__|${THISHOST}|g" ${INSTALLDIR}/var/web/news/index.html
287 sed -i "s|__TODAY__|${TODAY}|g" ${INSTALLDIR}/var/web/news/index.html
288 sed -i "s|__VERSION__|${VERSION}|g" ${INSTALLDIR}/var/web/news/index.html
289 sed -i "s|__BRANCH__|${BRANCH}|g" ${INSTALLDIR}/var/web/news/index.html
24057702 290fi
c05e3516 291
341cf34e 292# 8.5 offline patron list
24057702
JD
293if [ ! -d "${INSTALLDIR}/var/data/offline/blocked" ] ; then
294 # TODO: handle prod - an NFS share should exist
295 if [[ ! -n "$PROD" ]] ; then
296 mkdir -p ${INSTALLDIR}/var/data/offline/blocked
297 fi
298fi
437b75c1 299if [ ! -e "${INSTALLDIR}/var/web/standalone/list.txt" ] ; then ln -sf ${INSTALLDIR}/var/data/offline/blocked/patron-block-list.txt ${INSTALLDIR}/var/web/standalone/list.txt ; fi
341cf34e
JD
300if [ ! -e "${INSTALLDIR}/bin/update-offline-blocked-list.sh" ] ; then cp ${SITKATOOLS}/maintenance/update-offline-blocked-list.sh ${INSTALLDIR}/bin/update-offline-blocked-list.sh ; fi
301
f37d71da 302cp ${SITKACONF}/files${INSTALLDIR}/var/data/zips.txt/${HOSTNAME} ${INSTALLDIR}/var/data/zips.txt
661d99f4 303
f5bb272b
JD
304# install legacy OverDrive API integration
305cp -r ${SITKATOOLS}/overdrive-eg-opac/build/* ${INSTALLDIR}/var/web/js/ui/default/opac
306ODAPI_LIBS="bc mb"
307for ODAPI_LIB in ${ODAPI_LIBS} ; do
308 cp ${SITKACONF}/files/${INSTALLDIR}/var/web/js/ui/default/opac/${ODAPI_LIB}/od_config.js ${INSTALLDIR}/var/web/js/ui/default/opac/${ODAPI_LIB}/od_config.js
309done
02bd66d5 310
ea5fbaea
JD
311# install mobile PAC
312cd ${INSTALLDIR}/var/web/opac/extras && git clone git://git.sitka.bclibraries.ca/sitka/mobile-evergreen-opac.git mobile
313
c05e3516 314# 9. make sure opensrf owns all the stuff we just did
b7afc39d 315echo 'managing file permissions...'
af205db8
JD
316if [[ ! -n "$PROD" ]] ; then
317 chown -R opensrf:opensrf ${INSTALLDIR} 2>/dev/null
318else
319 for file in `ls -1 ${INSTALLDIR} | grep -v var` ; do chown -R opensrf:opensrf ${INSTALLDIR}/$file ; done
320 chown opensrf:opensrf ${INSTALLDIR}/var
321 for file in `ls -1 ${INSTALLDIR}/var | egrep -v '(data|tmp|web)'` ; do chown -R opensrf:opensrf ${INSTALLDIR}/var/$file ; done
322 chown opensrf:opensrf ${INSTALLDIR}/var/data ${INSTALLDIR}/var/web
323 for file in `ls -1 ${INSTALLDIR}/var/data | grep -v offline` ; do chown -R opensrf:opensrf ${INSTALLDIR}/var/data/$file ; done
324 for file in `ls -1 ${INSTALLDIR}/var/web | grep -v reporter` ; do chown -R opensrf:opensrf ${INSTALLDIR}/var/web/$file ; done
325fi
d4e88b8a 326chown -R opensrf:opensrf /home/opensrf
7f126d3b
JD
327SKINDIRS="${INSTALLDIR}/var/skins ${INSTALLDIR}/var/web/css/skin"
328for SKINDIR in ${SKINDIRS} ; do
329 if [[ ! -d "${SKINDIR}" ]] ; then mkdir ${SKINDIR} ; fi
330 chmod 777 ${SKINDIR}
bd4a0e27 331 chown -R ${DEFAULT_USER}:${DEFAULT_USER} ${SKINDIR}
7f126d3b 332done
bd4a0e27 333chown -R ${DEFAULT_USER}:${DEFAULT_USER} ${INSTALLDIR}/conf/kpac ${INSTALLDIR}/var/web/images/kpac
0155bbac 334
d4e88b8a 335# 10. staff client stuff
ae9cb412 336apt-get install -y nsis unzip
089f11fb
JD
337
338# 11. integrity checker prereqs
ae9cb412 339apt-get install -y libconfig-simple-perl libgit-repository-perl libdate-manip-perl
ee1de43f
JD
340
341# 12. paper overdue prereqs
5e12a76f 342apt-get install -y python-reportlab python-reportlab-accel unifont
6298f1c5 343
a4d987d6 344echo 'Evergreen is installed!'
676b054f 345if [[ -n "$WEBCLIENT" ]] ; then
6298f1c5
JD
346 echo 'Remember to start the websockets service: /etc/init.d/apache2-websockets start'
347fi
348