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