The following steps guide you through a simplistic upgrade of a production server. You must adjust these steps to accommodate your customizations such as catalogue skins.
Stop Evergreen and back up your data:
As the opensrf user, stop all Evergreen and OpenSRF services:
osrf_control --localhost --stop-all
As the opensrf user, download and extract Evergreen 3.0.5:
wget https://evergreen-ils.org/downloads/Evergreen-ILS-3.0.5.tar.gz tar xzf Evergreen-ILS-3.0.5.tar.gz
For the latest edition of Evergreen, check the Evergreen download page and adjust upgrading instructions accordingly.
As the root user, install the prerequisites:
cd /home/opensrf/Evergreen-ILS-3.0.5
On the next command, replace [distribution]
with one of these values for your
distribution of Debian or Ubuntu:
debian-jessie
for Debian Jessie (8.0) (See Bug 134222 if you want to use EDI)
debian-wheezy
for Debian Wheezy (7.0)
ubuntu-xenial
for Ubuntu Xenial Xerus (16.04) (EDI compatibility in progress)
ubuntu-trusty
for Ubuntu Trusty Tahr (14.04) (See Bug 134222 if you want to use EDI)
make -f Open-ILS/src/extras/Makefile.install [distribution]
As the opensrf user, configure and compile Evergreen:
cd /home/opensrf/Evergreen-ILS-3.0.5 PATH=/openils/bin:$PATH ./configure --prefix=/openils --sysconfdir=/openils/conf make
These instructions assume that you have also installed OpenSRF under /openils/. If not, please adjust PATH as needed so that the Evergreen configure script can find osrf_config.
As the root user, install Evergreen:
cd /home/opensrf/Evergreen-ILS-3.0.5 make STAFF_CLIENT_STAMP_ID=rel_3_0_5 install
As the root user, change all files to be owned by the opensrf user and group:
chown -R opensrf:opensrf /openils
As the opensrf user, update the server symlink in /openils/var/web/xul/:
cd /openils/var/web/xul/ rm server ln -sf rel_3_0_5/server server
As the opensrf user, update opensrf_core.xml and opensrf.xml by copying the new example files (/openils/conf/opensrf_core.xml.example and /openils/conf/opensrf.xml). The -b option creates a backup copy of the old file.
cp -b /openils/conf/opensrf_core.xml.example /openils/conf/opensrf_core.xml cp -b /openils/conf/opensrf.xml.example /openils/conf/opensrf.xml
Copying these configuration files will remove any customizations you have made to them. Remember to redo your customizations after copying them.
As the opensrf user, update the configuration files:
cd /home/opensrf/Evergreen-ILS-3.0.5 perl Open-ILS/src/support-scripts/eg_db_config --update-config --service all \ --create-offline --database evergreen --host localhost --user evergreen --password evergreen
As the root user, update the Apache files:
Use the example configuration files in Open-ILS/examples/apache/
(for
Apache versions below 2.4) or Open-ILS/examples/apache_24/
(for Apache
versions 2.4 or greater) to configure your Web server for the Evergreen
catalog, staff client, Web services, and administration interfaces. Issue the
following commands as the root Linux account:
Copying these Apache configuration files will remove any customizations you have made to them. Remember to redo your customizations after copying them.
For example, if you purchased an SSL certificate, you will need to edit eg.conf to point to the appropriate SSL certificate files.
The diff command can be used to show the differences between the distribution version and your customized version. diff <customized file> <dist file>
Update /etc/apache2/eg_startup by copying the example from Open-ILS/examples/apache/eg_startup.
cp /home/opensrf/Evergreen-ILS-3.0.5/Open-ILS/examples/apache/eg_startup /etc/apache2/eg_startup
Update /etc/apache2/eg_vhost.conf by copying the example from Open-ILS/examples/apache/eg_vhost.conf.
cp /home/opensrf/Evergreen-ILS-3.0.5/Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/eg_vhost.conf
Update /etc/apache2/sites-available/eg.conf by copying the example from Open-ILS/examples/apache/eg.conf.
cp /home/opensrf/Evergreen-ILS-3.0.5/Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/eg.conf