2012-07-20 06:00:13 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
cd "$(dirname "${0}")" || (echo "Cannot cd"; exit 1)
|
2012-07-20 06:00:13 +07:00
|
|
|
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
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
"$DESTINATION"/update-prd.sh "$1" 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
|
2020-09-09 00:37:00 +07:00
|
|
|
cp jetty.xml.sav jettyhome/etc/jetty.xml
|
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 jetty-ssl.xml.sav ]
|
|
|
|
then
|
2020-09-09 00:37:00 +07:00
|
|
|
cp jetty-ssl.xml.sav jettyhome/etc/jetty-ssl.xml
|
2014-10-13 10:05:19 +07:00
|
|
|
rm -f jetty-ssl.xml.sav
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f jetty-selector.xml.sav ]
|
|
|
|
then
|
2020-09-09 00:37:00 +07:00
|
|
|
cp jetty-selector.xml.sav jettyhome/etc/jetty-selector.xml
|
2014-10-13 10:05:19 +07:00
|
|
|
rm -f jetty-selector.xml.sav
|
|
|
|
fi
|