/
config.sh
39 lines (32 loc) · 1.21 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# resolve links - so that script can be called from any dir
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
WEB_DIR="$PRGDIR/../web"
JEEVES_DIR="$PRGDIR/../web"
#################################################
# The parameters below can be overridden in your personal
# configuration file if the default don't work
#################################################
DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
OVERRIDES="-Dgeonetwork.jeeves.configuration.overrides.file=/WEB-INF/override-config-jeichar.xml"
MEMORY="-XX:MaxPermSize=256m -Xmx1024M -server"
DATA_DIR="$HOME/gc_data"
LOGGING="-Dfile.encoding=UTF8 -Dlog4j.debug=true -Dlog4j.configuration=file://$WEB_DIR/src/main/webapp/WEB-INF/log4j-jeichar.cfg"
DB="geocat2_trunk"
SQL_DIR="/usr/local/share/postgis/"
POSTGIS_INSTALL="template" # options are: "template" or "POSTGIS 2 create" or "POSTGIS 1 create"
export PG_PASSWORD="www-data"
# Load personal config file
CONFIG_FILE="config_`whoami`.sh"
. $CONFIG_FILE