From 163c779c8b5eff53189f450a0c8f3e1184a4a35b Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 21 Nov 2013 18:24:08 +0800 Subject: [PATCH] Update core product version to 2.0.0. Fixed lost tomcat configuration upgrading from 1.0 to 2.0 instance. --- org.idempiere.eclipse.platform-feature/update.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.idempiere.eclipse.platform-feature/update.sh b/org.idempiere.eclipse.platform-feature/update.sh index 32a677d9c0..cea34fc074 100644 --- a/org.idempiere.eclipse.platform-feature/update.sh +++ b/org.idempiere.eclipse.platform-feature/update.sh @@ -13,8 +13,12 @@ fi if [ -f plugins/org.adempiere.tomcat.config_1.0.0/META-INF/tomcat/server.xml ] then cp plugins/org.adempiere.tomcat.config_1.0.0/META-INF/tomcat/server.xml server.xml.sav + rm plugins/org.adempiere.tomcat.config_1.0.0/META-INF/tomcat/server.xml +fi +if [ -f plugins/org.adempiere.tomcat.config_2.0.0/META-INF/tomcat/server.xml ] +then + cp plugins/org.adempiere.tomcat.config_2.0.0/META-INF/tomcat/server.xml server.xml.sav fi - java -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=director -jar plugins/org.eclipse.osgi_3.7.*.jar -application org.eclipse.equinox.p2.director -consoleLog -profileProperties org.eclipse.update.install.features=true -destination $DESTINATION -repository $1 -u org.adempiere.server.product java -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=director -jar plugins/org.eclipse.osgi_3.7.*.jar -application org.eclipse.equinox.p2.director -consoleLog -profileProperties org.eclipse.update.install.features=true -destination $DESTINATION -repository $1 -i org.adempiere.server.product @@ -22,7 +26,7 @@ java -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.ins cp idempiere.ini.sav idempiere.ini if [ -f server.xml.sav ] then - cp server.xml.sav plugins/org.adempiere.tomcat.config_1.0.0/META-INF/tomcat/server.xml + cp server.xml.sav plugins/org.adempiere.tomcat.config_2.0.0/META-INF/tomcat/server.xml rm -f server.xml.sav fi