core-jgi/org.idempiere.eclipse.platf.../update.sh

57 lines
1.3 KiB
Bash

#!/bin/sh
#
cd $(dirname "${0}")
DESTINATION=$(pwd)
cp idempiere.ini idempiere.ini.sav
if [ -f jetty.xml.sav ];
then
rm -f jetty.xml.sav
fi
if [ -f jettyhome/etc/jetty.xml ]
then
cp jettyhome/etc/jetty.xml jetty.xml.sav
fi
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 ]
then
cp jettyhome/etc/jetty-selector.xml jetty-selector.xml.sav
fi
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
cp idempiere.ini.sav idempiere.ini
if [ -f jetty.xml.sav ]
then
cp jetty.xml.sav jettyhome/etc/jetty.xml
rm -f jetty.xml.sav
fi
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