2012-07-20 06:00:13 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
|
|
|
|
cd $(dirname "${0}")
|
|
|
|
DESTINATION=$(pwd)
|
|
|
|
|
|
|
|
cp idempiere.ini idempiere.ini.sav
|
|
|
|
|
2014-10-13 10:05:19 +07:00
|
|
|
if [ -f jetty.xml.sav ];
|
2013-07-15 16:13:07 +07:00
|
|
|
then
|
2014-10-13 10:05:19 +07:00
|
|
|
rm -f jetty.xml.sav
|
2013-07-15 16:13:07 +07:00
|
|
|
fi
|
2014-10-13 10:05:19 +07:00
|
|
|
if [ -f jettyhome/etc/jetty.xml ]
|
2013-07-15 16:13:07 +07:00
|
|
|
then
|
2014-10-13 10:05:19 +07:00
|
|
|
cp jettyhome/etc/jetty.xml jetty.xml.sav
|
2013-11-21 17:24:08 +07:00
|
|
|
fi
|
2014-10-13 10:05:19 +07:00
|
|
|
|
|
|
|
if [ -f jetty-ssl.xml.sav ];
|
|
|
|
then
|
|
|
|
rm -f jetty-ssl.xml.sav
|
|
|
|
fi
|
|
|
|
if [ -f jettyhome/etc/jetty-ssl.xml ]
|
|
|
|
then
|
|
|
|
cp jettyhome/etc/jetty-ssl.xml jetty-ssl.xml.sav
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f jetty-selector.xml.sav ];
|
|
|
|
then
|
|
|
|
rm -f jetty-selector.xml.sav
|
|
|
|
fi
|
|
|
|
if [ -f jettyhome/etc/jetty-selector.xml ]
|
2013-11-21 17:24:08 +07:00
|
|
|
then
|
2014-10-13 10:05:19 +07:00
|
|
|
cp jettyhome/etc/jetty-selector.xml jetty-selector.xml.sav
|
2013-07-15 16:13:07 +07:00
|
|
|
fi
|
2012-07-20 06:00:13 +07:00
|
|
|
|
2014-10-13 10:05:19 +07:00
|
|
|
java -jar plugins/org.eclipse.equinox.launcher_1.*.jar -install director -configuration director/configuration -application org.eclipse.equinox.p2.director -consoleLog -profileProperties org.eclipse.update.install.features=true -destination $DESTINATION -repository $1 -u org.adempiere.server.product -i org.adempiere.server.product
|
2012-07-20 06:00:13 +07:00
|
|
|
|
|
|
|
cp idempiere.ini.sav idempiere.ini
|
2014-10-13 10:05:19 +07:00
|
|
|
|
|
|
|
if [ -f jetty.xml.sav ]
|
2013-07-15 16:13:07 +07:00
|
|
|
then
|
2014-10-13 10:05:19 +07:00
|
|
|
cp jetty.xml.sav jettyhome/etc/jetty.xml
|
|
|
|
rm -f jetty.xml.sav
|
2013-07-15 16:13:07 +07:00
|
|
|
fi
|
|
|
|
|
2014-10-13 10:05:19 +07:00
|
|
|
if [ -f jetty-ssl.xml.sav ]
|
|
|
|
then
|
|
|
|
cp jetty-ssl.xml.sav jettyhome/etc/jetty-ssl.xml
|
|
|
|
rm -f jetty-ssl.xml.sav
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f jetty-selector.xml.sav ]
|
|
|
|
then
|
|
|
|
cp jetty-selector.xml.sav jettyhome/etc/jetty-selector.xml
|
|
|
|
rm -f jetty-selector.xml.sav
|
|
|
|
fi
|