IDEMPIERE-1175 iDempiere Server update script should preserve tomcat configuration file.
This commit is contained in:
parent
fa03fcce0e
commit
4f600b5060
|
@ -4,9 +4,17 @@
|
|||
cd %~dp0
|
||||
|
||||
cp idempiere.ini idempiere.ini.sav
|
||||
if exist server.xml.sav del /q server.xml.sav
|
||||
if exist plugins/org.adempiere.tomcat.config_1.0.0/META-INF/tomcat/server.xml (
|
||||
copy plugins/org.adempiere.tomcat.config_1.0.0/META-INF/tomcat/server.xml server.xml.sav
|
||||
)
|
||||
|
||||
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 %~dp0 -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 %~dp0 -repository %1 -i org.adempiere.server.product
|
||||
|
||||
cp idempiere.ini.sav idempiere.ini
|
||||
if exist server.xml.sav (
|
||||
copy server.xml.sav plugins/org.adempiere.tomcat.config_1.0.0/META-INF/tomcat/server.xml
|
||||
del /q server.xml.sav
|
||||
)
|
||||
|
|
|
@ -6,8 +6,23 @@ DESTINATION=$(pwd)
|
|||
|
||||
cp idempiere.ini idempiere.ini.sav
|
||||
|
||||
if [ -f server.xml.sav ];
|
||||
then
|
||||
rm -f server.xml.sav
|
||||
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
|
||||
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
|
||||
|
||||
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
|
||||
rm -f server.xml.sav
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue