UPGRADES
From UGP-Wiki
Below is the notes from upgrading UCI grid portal
1. Backup the current database
* login as globus user
* Take a mysql database dump using the command 'mysqldump -a gridsphere -u dbadmin -p -r ugp.file'
2. update Portal directory
* cd UCLAGridPortal
* mv Portal Portal.`date`
* scp the latest 'Portal' directory from the web or from UCLA
* cd Portal (The new Portal directory)
* copy the old html directory 'cp -r ../Portal.`date`/html .
3. Upload fileupload version from 1.0 to 1.2
* Manually remove all commons-fileupload-1.0.jar file old versions and update those location with the newest jar files
cd $CATALINA_HOME
cp shared/lib/commons-fileupload-1.2.jar ./server/webapps/manager/WEB-INF/lib/
4. Compile and deploy the application
* ant compile
* ant deploy
5. update the database
* ant update-database
6. deploy Grid Virtual Desktop
* cd UCLAGridPortal/desktop/
* ant deploy
7. update mysql database
* mysql -u dbadmin -p
* use gridsphere
* alter table Application add customizedXml varchar(255);
8. restart Tomcat
* $CATALINA_HOME/bin/shutdown.sh
* $CATALINA_HOME/bin/startup.sh

