2006-11-17 10:09:16 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
echo Install Adempiere Server
|
|
|
|
# $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
|
|
|
|
|
|
|
|
|
|
|
|
echo ===================================
|
|
|
|
echo Setup Dialog
|
|
|
|
echo ===================================
|
2006-12-02 00:14:01 +07:00
|
|
|
CP=lib/CInstall.jar:lib/Adempiere.jar:lib/CCTools.jar:lib/oracle.jar:lib/derby.jar:lib/fyracle.jar:lib/jboss.jar:lib/postgresql.jar:
|
2006-11-17 10:09:16 +07:00
|
|
|
|
|
|
|
# Trace Level Parameter, e.g. ARGS=ALL
|
|
|
|
ARGS=CONFIG
|
|
|
|
|
|
|
|
# To test the OCI driver, add -DTestOCI=Y to the command - example:
|
|
|
|
# $JAVA -classpath $CP -DADEMPIERE_HOME=$ADEMPIERE_HOME -DTestOCI=Y org.compiere.install.Setup $ARGS
|
|
|
|
|
2010-04-29 03:59:00 +07:00
|
|
|
# $JAVA -classpath $CP -DADEMPIERE_HOME=$ADEMPIERE_HOME org.compiere.install.Setup $ARGS
|
|
|
|
# OSGi:
|
|
|
|
$JAVA -jar osgi/org.eclipse.osgi_3.5.0.v20090520.jar -clean -console -application org.adempiere.Install
|
|
|
|
|
2006-11-17 10:09:16 +07:00
|
|
|
|
|
|
|
#echo ===================================
|
|
|
|
#echo Setup Adempiere Server Environment
|
|
|
|
#echo ===================================
|
|
|
|
#$JAVA -classpath $CP -DADEMPIERE_HOME=$ADEMPIERE_HOME -Dant.home="." org.apache.tools.ant.launch.Launcher setup
|
|
|
|
|
|
|
|
echo ===================================
|
|
|
|
echo Make .sh executable & set Env
|
|
|
|
echo ===================================
|
|
|
|
chmod -R a+x *.sh
|
|
|
|
find . -name '*.sh' -exec chmod a+x '{}' \;
|
|
|
|
|
2008-02-20 07:38:39 +07:00
|
|
|
# Sign database build
|
|
|
|
cd utils
|
2010-04-29 03:59:00 +07:00
|
|
|
#. ./RUN_SignDatabaseBuild.sh
|
2008-02-20 07:38:39 +07:00
|
|
|
|
2009-09-25 16:20:17 +07:00
|
|
|
. ./RUN_UnixEnv.sh
|
2006-11-17 10:09:16 +07:00
|
|
|
|
|
|
|
#echo ================================
|
|
|
|
#echo Test local Connection
|
|
|
|
#echo ================================
|
|
|
|
#%JAVA% -classpath lib/Adempiere.jar:lib/AdempiereCLib.jar org.compiere.install.ConnectTest localhost
|
|
|
|
|
|
|
|
echo .
|
2008-10-25 05:29:40 +07:00
|
|
|
echo For problems, check log file in base directory
|