From 7f5fdd41f63f2b4555d61f92c77ecdba0bc31a6d Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Wed, 18 Apr 2018 22:45:27 -0400 Subject: [PATCH] Updating upgrade docs for 3.0.7. Signed-off-by: Chris Sharp --- docs/installation/server_upgrade.adoc | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/docs/installation/server_upgrade.adoc b/docs/installation/server_upgrade.adoc index 5b60550290..7021ad0ad1 100644 --- a/docs/installation/server_upgrade.adoc +++ b/docs/installation/server_upgrade.adoc @@ -7,7 +7,7 @@ Software Prerequisites ~~~~~~~~~~~~~~~~~~~~~~ * **PostgreSQL**: The minimum supported version is 9.4. - * **Linux**: Evergreen 3.0.5 has been tested on Debian Stretch (9.0), + * **Linux**: Evergreen 3.0.7 has been tested on Debian Stretch (9.0), Debian Jessie (8.0), Debian Wheezy (7.0), Ubuntu Xenial Xerus (16.04), and Ubuntu Trusty Tahr (14.04). If you are running an older version of these distributions, you may want @@ -43,12 +43,12 @@ osrf_control --localhost --stop-all .. Back up the /openils directory. . Upgrade OpenSRF. Download and install the latest version of OpenSRF from the https://evergreen-ils.org/opensrf-downloads/[OpenSRF download page]. -. As the *opensrf* user, download and extract Evergreen 3.0.5: +. As the *opensrf* user, download and extract Evergreen 3.0.7: + [source, bash] ----------------------------------------------- -wget https://evergreen-ils.org/downloads/Evergreen-ILS-3.0.5.tar.gz -tar xzf Evergreen-ILS-3.0.5.tar.gz +wget https://evergreen-ils.org/downloads/Evergreen-ILS-3.0.7.tar.gz +tar xzf Evergreen-ILS-3.0.7.tar.gz ----------------------------------------------- + [NOTE] @@ -58,7 +58,7 @@ For the latest edition of Evergreen, check the https://evergreen-ils.org/egdownl + [source, bash] --------------------------------------------- -cd /home/opensrf/Evergreen-ILS-3.0.5 +cd /home/opensrf/Evergreen-ILS-3.0.7 --------------------------------------------- + On the next command, replace `[distribution]` with one of these values for your @@ -82,7 +82,7 @@ make -f Open-ILS/src/extras/Makefile.install [distribution] + [source, bash] ------------------------------------------------------------ -cd /home/opensrf/Evergreen-ILS-3.0.5 +cd /home/opensrf/Evergreen-ILS-3.0.7 PATH=/openils/bin:$PATH ./configure --prefix=/openils --sysconfdir=/openils/conf make ------------------------------------------------------------ @@ -93,8 +93,8 @@ These instructions assume that you have also installed OpenSRF under /openils/. + [source, bash] ------------------------------------------------------------ -cd /home/opensrf/Evergreen-ILS-3.0.5 -make STAFF_CLIENT_STAMP_ID=rel_3_0_5 install +cd /home/opensrf/Evergreen-ILS-3.0.7 +make STAFF_CLIENT_STAMP_ID=rel_3_0_7 install ------------------------------------------------------------ + . As the *root* user, change all files to be owned by the opensrf user and group: @@ -110,7 +110,7 @@ chown -R opensrf:opensrf /openils ----------------------------------------------------------- cd /openils/var/web/xul/ rm server -ln -sf rel_3_0_5/server server +ln -sf rel_3_0_7/server server ---------------------------------------------------------- + . As the *opensrf* user, update opensrf_core.xml and opensrf.xml by copying the @@ -130,7 +130,7 @@ Copying these configuration files will remove any customizations you have made t + [source, bash] ------------------------------------------------------------------------- -cd /home/opensrf/Evergreen-ILS-3.0.5 +cd /home/opensrf/Evergreen-ILS-3.0.7 perl Open-ILS/src/support-scripts/eg_db_config --update-config --service all \ --create-offline --database evergreen --host localhost --user evergreen --password evergreen ------------------------------------------------------------------------- @@ -154,21 +154,21 @@ The diff command can be used to show the differences between the distribution ve + [source, bash] ---------------------------------------------------------- -cp /home/opensrf/Evergreen-ILS-3.0.5/Open-ILS/examples/apache/eg_startup /etc/apache2/eg_startup +cp /home/opensrf/Evergreen-ILS-3.0.7/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. + [source, bash] ---------------------------------------------------------- -cp /home/opensrf/Evergreen-ILS-3.0.5/Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/eg_vhost.conf +cp /home/opensrf/Evergreen-ILS-3.0.7/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. + [source, bash] ---------------------------------------------------------- -cp /home/opensrf/Evergreen-ILS-3.0.5/Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/eg.conf +cp /home/opensrf/Evergreen-ILS-3.0.7/Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/eg.conf ---------------------------------------------------------- Upgrade the Evergreen database schema @@ -191,7 +191,7 @@ anything goes wrong during the upgrade. ============= Evergreen provides incremental upgrade scripts that allow you to upgrade from one minor version to the next until you have the current version of -the schema. For example, if you want to upgrade from 2.7.0 to 3.0.5, you +the schema. For example, if you want to upgrade from 2.7.0 to 3.0.7, you would run the following upgrade scripts: - 2.7.0-2.7.1-upgrade-db.sql @@ -232,6 +232,8 @@ would run the following upgrade scripts: - 3.0.2-3.0.3-upgrade-db.sql - 3.0.3-3.0.4-upgrade-db.sql - 3.0.4-3.0.5-upgrade-db.sql +- 3.0.5-3.0.6-upgrade-db.sql +- 3.0.6-3.0.7-upgrade-db.sql Note that you do *not* want to run additional 2.7 scripts to upgrade to the newest version of 2.7, since currently there is no automated way to upgrade @@ -251,8 +253,8 @@ as a user with the ability to connect to the database server. [source, bash] ---------------------------------------------------------- -cd /home/opensrf/Evergreen-ILS-3.0.5/Open-ILS/src/sql/Pg -psql -U evergreen -h localhost -f version-upgrade/3.0.3-3.0.4-upgrade-db.sql evergreen +cd /home/opensrf/Evergreen-ILS-3.0.7/Open-ILS/src/sql/Pg +psql -U evergreen -h localhost -f version-upgrade/3.0.6-3.0.7-upgrade-db.sql evergreen ---------------------------------------------------------- [TIP] -- 2.11.0