c67fb150df1db5446515c0587dd90cd8ad1be363
[sitka/sitka-tools.git] / deployment / install-eg.sh
1 #!/bin/bash
2 # IMPORTANT! This script assumes you have already installed OpenSRF.
3
4 HOSTNAME="nonprod"
5 DEFAULT_USER="opensrf"
6 INSTALL_USER="opensrf"
7 BUILDDIR="/home/${INSTALL_USER}/evergreen"
8 INSTALLDIR="/srv/openils"
9 REPO="git+ssh://git@git.sitka.bclibraries.ca/sitka/evergreen"
10 #REPO="git://git.evergreen-ils.org/working/Evergreen.git"
11 #REPO="git://git.evergreen-ils.org/Evergreen.git"
12 BRANCH="user/jeffdavis/eg334-tpac"
13 STAMP_ID="rel_3_3_4"
14 VERSION="3.3.4.sitka.1"
15 SITKACONF="/home/${DEFAULT_USER}/sysadmin"
16 SITKACONF_BRANCH="master"
17 SITKATOOLS="/root/sitka-tools"
18
19 THISHOST=`hostname -s`
20
21 suwrap() {
22   su -s /bin/bash -c "source ~/.bashrc ; $1" $2
23 }
24
25 while getopts ":pecWbtu" opt ; do
26   case $opt in
27     p ) PROD="prod";;
28     e ) EDI="edi";;
29     c ) CRONTAB="crontab";;
30     W ) SKIPWEBCLIENT="skipwebclient";;
31     b ) USEBUNDLE="usebundle";;
32     t ) TARBALL="tarball";;
33     u ) UPDATEONLY="updateonly";;
34   esac
35 done
36 shift $(($OPTIND - 1))
37
38 if [[ -n "$PROD" ]] ; then
39   echo 'this is a production install'
40   [ "$HOSTNAME" == "nonprod" ] && HOSTNAME="prod"
41 else
42   echo 'this is NOT a production install'
43 fi
44
45 # as DEFAULT_USER
46
47 # grab Sitka config files
48 if [ ! -d "${SITKACONF}" ]
49 then
50   # this will fail unless DEFAULT_USER has read access to the repo
51   suwrap "cd /home/${DEFAULT_USER} && git clone git+ssh://git@git.sitka.bclibraries.ca/sitka-infra/sysadmin" ${DEFAULT_USER} || { echo "Could not get config files; exiting." ; exit 1; }
52 fi
53 suwrap "cd ${SITKACONF} && git fetch origin && git checkout ${SITKACONF_BRANCH} && git pull" ${DEFAULT_USER} || { echo "Could not checkout ${SITKACONF_BRANCH} config files; exiting." ; exit 1; }
54
55 if [[ -n "$TARBALL" ]] ; then
56   EGRELEASE="Evergreen-ILS-${VERSION}"
57   EGRELEASETGZ="${EGRELEASE}.tar.gz"
58   [ ${VERSION} == "3.1.0" ] && EGRELEASETGZ="Evergreen-ILS-3.1.0a.tar.gz"
59   BUILDDIR="/home/${INSTALL_USER}/${EGRELEASE}"
60   BRANCH="$VERSION"
61   echo "installing packaged upstream release ${EGRELEASE}"
62   # download and unpack EG release
63   rm -rf ${BUILDDIR}
64   if [ ! -f "/home/${INSTALL_USER}/${EGRELEASETGZ}" ] ; then
65     suwrap "cd /home/${INSTALL_USER} && wget http://open-ils.org/downloads/${EGRELEASETGZ}" ${INSTALL_USER} || { echo "Could not download EG release tarball ${EGRELEASETGZ}" ; exit 1; }
66   fi
67   suwrap "cd /home/${INSTALL_USER} && tar xzf ${EGRELEASETGZ}" ${INSTALL_USER}
68 else
69   # checkout EG source
70   if [ ! -d "${BUILDDIR}" ]
71   then
72     suwrap "cd /home/${INSTALL_USER} && git clone ${REPO} evergreen" ${INSTALL_USER}
73   fi
74   suwrap "cd ${BUILDDIR} && git fetch origin && git checkout ${BRANCH} && git pull" ${INSTALL_USER}
75 fi
76
77 # as root
78 cd ${BUILDDIR} && make -f Open-ILS/src/extras/Makefile.install ubuntu-xenial
79 if [[ ! -n "$TARBALL" ]] ; then
80   cd ${BUILDDIR} && make -f Open-ILS/src/extras/Makefile.install ubuntu-xenial-translator # required for web client and custom translations
81 fi
82 # by default, CPAN needs some manual input at this point; you can just accept all defaults
83  
84 # web client
85 if [[ ! -n "$TARBALL" && ! -n "$SKIPWEBCLIENT" ]] ; then
86   if [[ -n "$USEBUNDLE" ]] ; then
87     # use bundled web client dependencies from upstream
88     if [ ! -d "/home/${INSTALL_USER}/web-client-deps" ] ; then
89       suwrap "cd /home/${INSTALL_USER} && git clone git://git.sitka.bclibraries.ca/sitka/web-client-deps web-client-deps" ${INSTALL_USER}
90     fi
91     suwrap "cd /home/${INSTALL_USER}/web-client-deps && git checkout ${STAMP_ID}" ${INSTALL_USER}
92     if [ -d "${BUILDDIR}/Open-ILS/web/js/ui/default/staff/build" ] ; then rm -rf ${BUILDDIR}/Open-ILS/web/js/ui/default/staff/build ; fi
93     suwrap "cp -r /home/${INSTALL_USER}/web-client-deps/build ${BUILDDIR}/Open-ILS/web/js/ui/default/staff/build" ${INSTALL_USER}
94   else
95     # install dependencies
96     cd ${BUILDDIR}/Open-ILS/web/js/ui/default/staff/
97     sed -i "s|'/openils/lib/javascript|'${INSTALLDIR}/lib/javascript|g" ${BUILDDIR}/Open-ILS/web/js/ui/default/staff/test/karma.conf.js
98     suwrap "npm install" ${INSTALL_USER}
99     suwrap "npm run build-prod && npm run test" ${INSTALL_USER} || { echo 'Could not install files for AngularJS staff client' ; exit 1; }
100     cd ${BUILDDIR}/Open-ILS/src/eg2/
101     sed -i "s|'/openils/lib/javascript|'${INSTALLDIR}/lib/javascript|g" ${BUILDDIR}/Open-ILS/src/eg2/karma.conf.js
102     suwrap "npm install" ${INSTALL_USER}
103     suwrap "ng build --prod && npm run test" ${INSTALL_USER} || { echo 'Could not install files for Angular staff client' ; exit 1; }
104   fi
105 fi
106
107 # as INSTALL_USER
108 [ ! -n "$TARBALL" ] && suwrap "cd ${BUILDDIR} && autoreconf -i" ${INSTALL_USER} # not required for release versions
109 suwrap "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}
110 suwrap "cd ${BUILDDIR} && make" ${INSTALL_USER}
111 [ ! -n "$TARBALL" ] && suwrap "cd ${BUILDDIR}/build/i18n && make LOCALE=fr-CA install && make LOCALE=en-CA install" ${INSTALL_USER}
112  
113 # as root
114 rm -rf ${INSTALLDIR}/var/web/eg2/en-US
115 cd ${BUILDDIR} && make install
116 mv ${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/
117  
118 # setup start page
119 if [ ! -d "${INSTALLDIR}/var/web/news" ]
120 then
121   mkdir ${INSTALLDIR}/var/web/news
122 fi
123 if [ ! -d "${INSTALLDIR}/var/web/news/media" ]
124 then
125   mkdir ${INSTALLDIR}/var/web/news/media
126 fi
127 NEWSFILES="index.html style.css media/logo.png media/book.png media/policy.png media/dash.png media/delete.png"
128 for NEWSFILE in ${NEWSFILES}
129 do
130   if [ -f "${SITKACONF}/files/${INSTALLDIR}/var/web/news/${NEWSFILE}/${HOSTNAME}" ]
131   then
132     cp ${SITKACONF}/files/${INSTALLDIR}/var/web/news/${NEWSFILE}/${HOSTNAME} ${INSTALLDIR}/var/web/news/${NEWSFILE}
133   fi
134 done
135 if [[ -n "$PROD" ]] ; then
136   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
137   if [ ! -e "/etc/cron.d/news" ] ; then cp ${SITKACONF}/files/etc/cron.d/news/${HOSTNAME} /etc/cron.d/news ; fi
138 else
139   # nonprod server, auto-update splash page with install info
140   TODAY=`date +'%A %d %B %Y'`
141   sed -i "s|__THISHOST__|${THISHOST}|g" ${INSTALLDIR}/var/web/news/index.html
142   sed -i "s|__TODAY__|${TODAY}|g" ${INSTALLDIR}/var/web/news/index.html
143   sed -i "s|__VERSION__|${VERSION}|g" ${INSTALLDIR}/var/web/news/index.html
144   sed -i "s|__BRANCH__|${BRANCH}|g" ${INSTALLDIR}/var/web/news/index.html
145 fi
146
147 # setup/update test server banner
148 if [[ ! -n "$PROD" ]] ; then
149   SITECONFIGS="/etc/apache2/sites-available/test-server.conf"
150   for SITECONFIG in ${SITECONFIGS} ; do
151     cp ${SITKACONF}/files/${SITECONFIG}/${HOSTNAME} ${SITECONFIG}
152     sed -i "s|__NONPROD__|${THISHOST}|g" ${SITECONFIG}
153     sed -i "s|__VERSION__|${VERSION}|g" ${SITECONFIG}
154   done
155   a2ensite test-server.conf
156 fi
157
158 # if we are just updating an existing EG install, we're all done!
159 if [[ -n "$UPDATEONLY" ]] ; then
160     exit 0
161 fi
162
163 if [[ ! -n "$SKIPWEBCLIENT" ]] ; then
164     apt-get install -y nginx
165 fi
166
167 # Apache stuff (as root):
168 APACHEFILES="/etc/apache2/mods-available/mpm_prefork.conf"
169 for APACHEFILE in ${APACHEFILES}
170 do
171   [[ -e "${APACHEFILE}" ]] && mv ${APACHEFILE} ${APACHEFILE}.`date +%Y-%m-%d-%H%M%S`
172   cp ${SITKACONF}/files/${APACHEFILE}/${HOSTNAME} ${APACHEFILE}
173 done
174 cp ${BUILDDIR}/Open-ILS/examples/apache/eg_startup /etc/apache2/eg_startup
175 sed -i 's/export APACHE_RUN_USER=www-data/export APACHE_RUN_USER=opensrf/' /etc/apache2/envvars
176 if [ ! -d "/etc/apache2/includes" ] ; then
177   mkdir /etc/apache2/includes
178 fi
179 a2dismod mpm_event
180 a2enmod mpm_prefork
181 a2enmod headers
182 # ensure opensrf can run Apache
183 chown -R opensrf:opensrf /var/lock/apache2
184
185 # More Apache stuff for non-production sites
186 if [[ ! -n "$PROD" ]] ; then
187   a2dissite 000-default
188   if [ ! -d "/etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop" ]
189   then
190     mkdir -p /etc/apache2/ssl/libraries.coop/star.catalogue.libraries.coop
191     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
192     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
193     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
194   fi
195 fi
196
197 # websockets config
198 if [[ ! -n "$SKIPWEBCLIENT" ]] ; then
199     cp -b ${SITKACONF}/files/etc/nginx/sites-available/osrf-ws-http-proxy/${HOSTNAME} /etc/nginx/sites-available/osrf-ws-http-proxy
200     #ln -s /etc/nginx/sites-available/osrf-ws-http-proxy /etc/nginx/sites-enabled/osrf-ws-http-proxy
201     rm /etc/nginx/sites-enabled/default
202     cp -b ${SITKACONF}/files/etc/apache2/ports.conf/${HOSTNAME} /etc/apache2/ports.conf
203     WSJSFILES="opensrf_ws.js opensrf_ws_shared.js"
204     for WSJSFILE in ${WSJSFILES} ; do
205         # NOTE: this should be unnecessary if we installed OpenSRF with ./configure --with-websockets-port=443
206         sed -i 's/var WEBSOCKET_PORT_SSL = 7682;/var WEBSOCKET_PORT_SSL = 443;/g' ${INSTALLDIR}/lib/javascript/$WSJSFILE
207     done
208 fi
209
210 # install default crontab, if specified
211 if [[ -c "$CRONTAB" ]]; then
212   if [ ! -f "/etc/cron.d/evergreen-dailies" ] ; then
213     cp ${SITKACONF}/files/etc/cron.d/evergreen-dailies/${HOSTNAME} /etc/cron.d/evergreen-dailies
214   fi
215 fi
216
217 # LDAP config
218 if ! `diff ${SITKACONF}/files/etc/ldap/ldap.conf/${HOSTNAME} /etc/ldap/ldap.conf >/dev/null` ; then
219     cp -b --suffix=.`date +%Y-%m-%d-%H%M%S` ${SITKACONF}/files/etc/ldap/ldap.conf/${HOSTNAME} /etc/ldap/ldap.conf
220 fi
221
222 # set up log rotation
223 if [[ ! -n "$PROD" ]] ; then
224   if [ ! -f "/etc/logrotate.d/evergreen" ]
225   then
226     cp ${SITKACONF}/files/etc/logrotate.d/evergreen/${HOSTNAME} /etc/logrotate.d/evergreen
227   fi
228 fi
229
230 # remote logging (prod only)
231 if [[ -n "$PROD" ]] ; then
232   apt-get install syslog-ng
233   cp ${SITKACONF}/files/etc/syslog-ng/syslog-ng.conf/${HOSTNAME} /etc/syslog-ng/syslog-ng.conf
234   cp ${SITKACONF}/files/etc/syslog-ng/conf.d/sitka.conf/${HOSTNAME} /etc/syslog-ng/conf.d/sitka.conf
235   systemctl restart syslog-ng.service
236   cp ${SITKACONF}/files/usr/local/bin/eg-stats-collector-remote-log.pl /usr/local/bin/eg-stats-collector-remote-log.pl
237   cp ${SITKACONF}/files/usr/local/bin/eg-stats-keepalive.sh /usr/local/bin/eg-stats-keepalive.sh
238   cp ${SITKACONF}/files/etc/cron.d/eg-stats-keepalive/${HOSTNAME} /etc/cron.d/eg-stats-keepalive
239 fi
240
241 # action trigger filters (prod only)
242 if [[ -n "$PROD" ]] ; then
243   if [ -f "${INSTALLDIR}/conf/action_trigger_filters.json" ] ; then
244     mv ${INSTALLDIR}/conf/action_trigger_filters.json ${INSTALLDIR}/conf/action_trigger_filters.json.`date +%Y-%m-%d-%H%M%S`
245   fi
246   cp ${SITKACONF}/files/${INSTALLDIR}/conf/action_trigger_filters.json/${HOSTNAME} ${INSTALLDIR}/conf/action_trigger_filters.json
247 fi
248  
249 # 0. osrf conf stuff 
250 # FIXME: ensure osrf conf files point at a real, distinct db!
251 OSRFCONFFILES="${INSTALLDIR}/conf/opensrf.xml ${INSTALLDIR}/conf/opensrf_core.xml"
252 for OSRFCONFFILE in ${OSRFCONFFILES}
253 do
254   mv ${OSRFCONFFILE} ${OSRFCONFFILE}.`date +%Y-%m-%d-%H%M%S`
255   if [[ -n "$PROD" && -f "${SITKACONF}/files/${OSRFCONFFILE}/${HOSTNAME}-314" ]] ; then
256     cp ${SITKACONF}/files/${OSRFCONFFILE}/${HOSTNAME}-314 ${OSRFCONFFILE}
257   else
258     cp ${SITKACONF}/files/${OSRFCONFFILE}/${HOSTNAME} ${OSRFCONFFILE}
259   fi
260   sed -i "s|__HOSTNAME__|${THISHOST}|g" ${OSRFCONFFILE}
261 done
262 if [ ! -f "/home/opensrf/.srfsh.xml" ]
263 then
264   cp ${SITKACONF}/files/home/opensrf/.srfsh.xml/${HOSTNAME} /home/opensrf/.srfsh.xml
265   sed -i "s|__HOSTNAME__|${THISHOST}|g" /home/opensrf/.srfsh.xml
266 fi 
267
268 # 1. install dojo
269 if [ ! -f "/home/opensrf/dojo-release-1.3.3.tar.gz" ]
270 then
271   cd /home/opensrf && wget http://download.dojotoolkit.org/release-1.3.3/dojo-release-1.3.3.tar.gz
272 fi
273 tar -C ${INSTALLDIR}/var/web/js -xzf /home/opensrf/dojo-release-1.3.3.tar.gz
274 cp -r ${INSTALLDIR}/var/web/js/dojo-release-1.3.3/* ${INSTALLDIR}/var/web/js/dojo/.
275 # FIXME stock dojo is probably superfluous when we use the following Evergreen-specific tarball...
276 if [ ! -f "/home/opensrf/dojo.tgz" ] ; then
277   cd /home/opensrf && wget http://evergreen-ils.org/downloads/dojo.tgz
278 fi
279 tar -C ${INSTALLDIR}/var/web/js/dojo/ -zxf /home/opensrf/dojo.tgz
280  
281 # 2. set up XUL client - DEPRECATED
282  
283 # 3. install circ scripts and opac skins - DEPRECATED
284
285 # 4a. avoid 404s
286 touch ${INSTALLDIR}/var/web/css/skin/default/register_custom.css
287
288 # 4b. workaround for LP#1461683 - DEPRECATED
289
290 # 5. locale hack - XXX deprecated?
291 #cd ${INSTALLDIR}/var/web/opac/locale && cp -fdr en-US en-US-bak && cp -fdr en-CA en-US
292  
293 # 6. deletepatron
294 # ensure apache conf contains deletepatron config (location should be ${INSTALLDIR}/var/web/deletepatron)
295 if [[ ! -d "${INSTALLDIR}/var/web/deletepatron" ]] ; then
296   NEW_DELETEPATRON_INSTALL="true"
297   cd ${INSTALLDIR}/var/web && git clone https://github.com/twirlip/deletepatron.git
298 fi
299 cd ${INSTALLDIR}/var/web/deletepatron && git checkout eg22
300 if [[ -n "$NEW_DELETEPATRON_INSTALL" ]] ; then
301   find ${INSTALLDIR}/var/web/deletepatron -name "*.pm" | xargs sed -i -e "s|/openils|${INSTALLDIR}|g"
302 fi
303 apt-get install -y libcgi-session-perl libhtml-template-perl
304
305 # 7. support scripts
306 cp ${BUILDDIR}/Open-ILS/src/support-scripts/generate_circ_notices.pl ${INSTALLDIR}/bin
307 cp ${BUILDDIR}/Open-ILS/src/support-scripts/oils_header.pl ${INSTALLDIR}/bin
308 cp ${BUILDDIR}/Open-ILS/src/support-scripts/badge_score_generator.pl ${INSTALLDIR}/bin
309
310 # 7.5 EDI (optional)
311 if [[ -n "$EDI" ]] ; then
312   cp -r ${BUILDDIR}/Open-ILS/src/edi_translator ${INSTALLDIR}/var/edi
313   cd ${INSTALLDIR}/var/edi && ./install.sh
314   cp ${BUILDDIR}/Open-ILS/src/support-scripts/edi_pusher.pl ${INSTALLDIR}/bin
315   cp ${BUILDDIR}/Open-ILS/src/support-scripts/edi_fetcher.pl ${INSTALLDIR}/bin
316   cp ${SYSADMIN}/files/${INSTALLDIR}/bin/edi_per_account_fetcher.sh ${INSTALLDIR}/bin/edi_per_account_fetcher.sh
317   # add local modifications to openils-mapper rubygem (eww, yuck, barf)
318   cp -b ${SYSADMIN}/files/var/lib/gems/2.3.0/gems/openils-mapper-0.9.9/lib/openils/mapper.rb /var/lib/gems/2.3.0/gems/openils-mapper-0.9.9/lib/openils/mapper.rb
319   cp -b ${SYSADMIN}/files/var/lib/gems/2.3.0/gems/openils-mapper-0.9.9/lib/edi/mapper.rb /var/lib/gems/2.3.0/gems/openils-mapper-0.9.9/lib/edi/mapper.rb
320 fi
321
322 # 8.5 offline patron list
323 if [ ! -d "${INSTALLDIR}/var/data/offline/blocked" ] ; then 
324   # TODO: handle prod - an NFS share should exist
325   if [[ ! -n "$PROD" ]] ; then
326     mkdir -p ${INSTALLDIR}/var/data/offline/blocked
327   fi
328 fi
329 if [ ! -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
330 if [ ! -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
331
332 cp ${SITKACONF}/files${INSTALLDIR}/var/data/zips.txt/${HOSTNAME} ${INSTALLDIR}/var/data/zips.txt
333
334 cp -b --suffix=.`date +%Y-%m-%d-%H%M%S` ${SITKACONF}/files${INSTALLDIR}/var/web/robots.txt/${HOSTNAME} ${INSTALLDIR}/var/web/robots.txt
335
336 # 9. make sure opensrf owns all the stuff we just did
337 echo 'managing file permissions...'
338 if [[ ! -n "$PROD" ]] ; then
339   chown -R opensrf:opensrf ${INSTALLDIR} 2>/dev/null
340 else
341   for file in `ls -1 ${INSTALLDIR} | grep -v var` ; do chown -R opensrf:opensrf ${INSTALLDIR}/$file ; done
342   chown opensrf:opensrf ${INSTALLDIR}/var
343   for file in `ls -1 ${INSTALLDIR}/var | egrep -v '(data|tmp|web)'` ; do chown -R opensrf:opensrf ${INSTALLDIR}/var/$file ; done
344   chown opensrf:opensrf ${INSTALLDIR}/var/data ${INSTALLDIR}/var/web
345   for file in `ls -1 ${INSTALLDIR}/var/data | grep -v offline` ; do chown -R opensrf:opensrf ${INSTALLDIR}/var/data/$file ; done
346   for file in `ls -1 ${INSTALLDIR}/var/web | grep -v reporter` ; do chown -R opensrf:opensrf ${INSTALLDIR}/var/web/$file ; done
347 fi
348 chown -R opensrf:opensrf /home/opensrf
349 SKINDIRS="${INSTALLDIR}/var/skins ${INSTALLDIR}/var/web/css/skin"
350 for SKINDIR in ${SKINDIRS} ; do
351   if [[ ! -d "${SKINDIR}" ]] ; then mkdir ${SKINDIR} ; fi
352   chmod 777 ${SKINDIR}
353   chown -R ${DEFAULT_USER}:${DEFAULT_USER} ${SKINDIR}
354 done
355 chown -R ${DEFAULT_USER}:${DEFAULT_USER} ${INSTALLDIR}/conf/kpac ${INSTALLDIR}/var/web/images/kpac
356
357 # 10. staff client stuff
358 apt-get install -y nsis unzip
359
360 # 11. integrity checker prereqs
361 apt-get install -y libconfig-simple-perl libgit-repository-perl libdate-manip-perl
362
363 # 12. paper overdue prereqs
364 apt-get install -y python-reportlab python-reportlab-accel unifont
365
366 echo 'Evergreen is installed!'
367