2010-11-04 02:46:38 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $Id: RUN_PostMigration.sh
|
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
if [ "$IDEMPIERE_HOME" ]; then
|
|
|
|
cd "$IDEMPIERE_HOME"/utils || (echo "Cannot cd $IDEMPIERE_HOME/utils"; exit 1)
|
2010-11-04 02:46:38 +07:00
|
|
|
fi
|
2020-09-09 00:37:00 +07:00
|
|
|
export ID_ENV=Server
|
|
|
|
. ./myEnvironment.sh
|
2010-11-04 02:46:38 +07:00
|
|
|
|
|
|
|
#check java home
|
2020-09-09 00:37:00 +07:00
|
|
|
if [ "$JAVA_HOME" ]; then
|
2010-11-04 02:46:38 +07:00
|
|
|
export PATH=$JAVA_HOME/bin:$PATH
|
|
|
|
else
|
|
|
|
echo JAVA_HOME is not set.
|
2012-06-06 21:13:34 +07:00
|
|
|
echo You may not be able to build idempiere
|
2010-11-04 02:46:38 +07:00
|
|
|
echo Set JAVA_HOME to the directory of your local JDK.
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
cd "$IDEMPIERE_HOME" || (echo "Cannot cd to $IDEMPIERE_HOME"; exit 1)
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2012-06-06 21:13:34 +07:00
|
|
|
./idempiere --launcher.ini setup.ini -application org.adempiere.base.PostMigration -consoleLog
|
2010-11-04 02:46:38 +07:00
|
|
|
|
|
|
|
echo Done ...
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|