2010-11-04 02:46:38 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-06-06 21:13:34 +07:00
|
|
|
# myEnvironment defines the variables used for idempiere
|
2021-01-03 21:19:49 +07:00
|
|
|
# Do not edit directly - use setup.sh
|
2010-11-04 02:46:38 +07:00
|
|
|
#
|
|
|
|
# $Id: myEnvironmentTemplate.sh,v 1.12 2005/02/21 03:17:21 jjanke Exp $
|
|
|
|
|
|
|
|
echo Setting myEnvironment ....
|
|
|
|
# Clients only needs
|
2012-06-06 21:13:34 +07:00
|
|
|
# IDEMPIERE_HOME
|
2020-09-09 00:37:00 +07:00
|
|
|
# JAVA_HOME
|
2010-11-04 02:46:38 +07:00
|
|
|
# Server install needs to change
|
|
|
|
# ADEMPIERE_DB_NAME (for Oracle)
|
|
|
|
# passwords
|
|
|
|
|
|
|
|
# Homes ...
|
2021-01-03 21:19:49 +07:00
|
|
|
IDEMPIERE_HOME="@IDEMPIERE_HOME@"
|
2012-06-06 21:13:34 +07:00
|
|
|
export IDEMPIERE_HOME
|
2021-01-03 21:19:49 +07:00
|
|
|
JAVA_HOME="@JAVA_HOME@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export JAVA_HOME
|
|
|
|
|
|
|
|
# Database ...
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_SERVER="@ADEMPIERE_DB_SERVER@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_SERVER
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_USER="@ADEMPIERE_DB_USER@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_USER
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_PASSWORD="$( "$IDEMPIERE_HOME/utils/getVar.sh" ADEMPIERE_DB_PASSWORD )"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_PASSWORD
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_URL="@ADEMPIERE_DB_URL@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_URL
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_PORT="@ADEMPIERE_DB_PORT@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_PORT
|
|
|
|
|
|
|
|
# Oracle Specifics ...
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_PATH="@ADEMPIERE_DB_PATH@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_PATH
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_NAME="@ADEMPIERE_DB_NAME@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_NAME
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_SYSTEM="$( "$IDEMPIERE_HOME/utils/getVar.sh" ADEMPIERE_DB_SYSTEM )"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_SYSTEM
|
|
|
|
|
|
|
|
# Homes(2)
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_DB_HOME="$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_DB_HOME
|
|
|
|
|
|
|
|
# Apps Server
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_APPS_SERVER="@ADEMPIERE_APPS_SERVER@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_APPS_SERVER
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_WEB_PORT="@ADEMPIERE_WEB_PORT@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_WEB_PORT
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_JNP_PORT="@ADEMPIERE_JNP_PORT@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_JNP_PORT
|
2021-01-03 21:19:49 +07:00
|
|
|
# SSL Settings - see jettyhome/etc/jetty.xml and jettyhome/etc/jetty-ssl.xml
|
|
|
|
ADEMPIERE_SSL_PORT="@ADEMPIERE_SSL_PORT@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_SSL_PORT
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_KEYSTORE="@ADEMPIERE_KEYSTORE@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_KEYSTORE
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_KEYSTOREPASS="@ADEMPIERE_KEYSTOREPASS@"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_KEYSTOREPASS
|
|
|
|
|
|
|
|
# Java
|
2021-01-03 21:19:49 +07:00
|
|
|
ADEMPIERE_JAVA="$JAVA_HOME/bin/java"
|
2010-11-04 02:46:38 +07:00
|
|
|
export ADEMPIERE_JAVA
|
2017-08-27 00:21:17 +07:00
|
|
|
IDEMPIERE_JAVA_OPTIONS="@IDEMPIERE_JAVA_OPTIONS@ -DIDEMPIERE_HOME=$IDEMPIERE_HOME"
|
|
|
|
export IDEMPIERE_JAVA_OPTIONS
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
if [ "$ID_ENV" != "Server" ]
|
|
|
|
then
|
2017-08-27 00:21:17 +07:00
|
|
|
cp $IDEMPIERE_HOME/utils/myEnvironment.sh $IDEMPIERE_HOME/utils/myEnvironment.sav
|
2020-09-09 00:37:00 +07:00
|
|
|
fi
|