VERSION SPECIFIC NOTES
----------------------

Version 1.4.1 - It is enough to update libraries in the lib/ folder.

Version 1.4.0 - It is required to update libraries in lib/ folder (lib/endorsed
	directory must be added too) and additionally bin/_setenv.sh script must be updated.
	Also crlcheck.properties file must be added to conf/ directory. Of course it is suggested
	to set it up. 

Version 1.3.3 - It is only needed to update libraries in lib/ folder.

Version 1.3.2 - Upgrade from 1.3.1 is quite easy: there is no need to update database 
	(the format was not altered). You must update:
	* libraries, 
	* start and stop scripts,
	* configuration file (see documentation for details):
	  * possible values of property uvos.server.authn.order are now: 'TLS' and 'HTTP'
	    in any order.
	  * new boolean property should be defined (default is false):
	    uvos.server.authn.mapTLSCertToDNFirst

Version 1.3.1 - It is only needed to update libraries in lib/ folder.

Version 1.3 - Upgrade from 1.2 is easy. There is no need to update database
	(the format was not altered). Configuration files are mostly unchanged:
	only the new options were added for UNICORE registration support and
	for enabling/disabling usage of X509 cert identities as DN-type identities.

Version 1.2 - Use generic upgrade instructions (below)

Version 1.1 - Use generic upgrade instructions (below)

Version 1.0 - it was an initial release so there is no upgrade possibility.




GENERIC UPGRADE
------------------

(I) DB

In order to do upgrade from older version of the server to the current one you will have to 
update your database. This manual assumes that you installed a new 
version of UVOS in a new directory (what is strongly recommended).
It is not possible to use a different DB engine when upgrading 
(e.g. if old UVOS used postgreSQL the new one have to use it too).

Required actions:
1) Stop the old UVOS server.
2) (!!) Backup your database used by the old UVOS. If you use embedded
DB (HSQL) you can skip this step.
3) Install and configure (at least DB settings in datamap.properties) the new 
UVOS installation. However do not start it or invoke initdb.sh script.
 -> in case of postgreSQL specify the same settings as was used by the
 old UVOS installation.
 -> in case of HSQL db just copy (copy, not move!) the contents of its data/ folder to
 the data/ folder of the new installation.
 
4) Eventually you have to upgrade your DB. There is a script which does the job.
It can upgrade from any older version to the current one, however only in steps. 

E.g. to do upgrade from version 1.0 to 1.2 you will have to first upgrade to 1.1 and 
then to 1.2. To do so invoke:

	# bin/updateDbVersion.sh 1.0 1.1
	# bin/updateDbVersion.sh 1.1 1.2
	
If the script completes without errors you are done! Otherwise you should contact 
UVOS developers - we might help.


(II) Configuration

We strongly advise to start from the configuration files provided in a new 
UVOS distribution and to update them manually to the previous settings.
Simply copying the old configuration files and overwriting the new installation
files can cause severe problems as often there are many configuration changes. 
 
