2010-11-04 17:05:01 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-06-06 21:13:34 +07:00
|
|
|
echo Setup idempiere Server
|
2010-11-04 17:05:01 +07:00
|
|
|
# $Header: /cvsroot/adempiere/install/Adempiere/RUN_setup.sh,v 1.19 2005/09/08 21:54:12 jjanke Exp $
|
|
|
|
|
|
|
|
if [ $JAVA_HOME ]; then
|
|
|
|
JAVA=$JAVA_HOME/bin/java
|
|
|
|
KEYTOOL=$JAVA_HOME/bin/keytool
|
|
|
|
else
|
|
|
|
JAVA=java
|
|
|
|
KEYTOOL=keytool
|
|
|
|
echo JAVA_HOME is not set.
|
|
|
|
echo You may not be able to start the Setup
|
|
|
|
echo Set JAVA_HOME to the directory of your local JDK.
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2012-06-06 21:13:34 +07:00
|
|
|
# Setup idempiere.properties and idempiereEnv.properties
|
2012-06-20 15:58:04 +07:00
|
|
|
$JAVA -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=setup -jar plugins/org.eclipse.osgi_3.7.*.jar -application org.adempiere.install.console-application
|
2010-11-04 17:05:01 +07:00
|
|
|
|
|
|
|
# Setup Tomcat
|
2012-06-20 15:58:04 +07:00
|
|
|
$JAVA -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=setup -jar plugins/org.eclipse.osgi_3.7.*.jar -application org.eclipse.ant.core.antRunner -buildfile build.xml
|
2010-11-04 17:05:01 +07:00
|
|
|
|
|
|
|
echo ===================================
|
|
|
|
echo Make .sh executable & set Env
|
|
|
|
echo ===================================
|
|
|
|
chmod -R a+x *.sh
|
|
|
|
find . -name '*.sh' -exec chmod a+x '{}' \;
|
|
|
|
|
|
|
|
echo .
|
|
|
|
echo For problems, check log file in base directory
|