-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfiguration.default
More file actions
57 lines (51 loc) · 1.24 KB
/
Configuration.default
File metadata and controls
57 lines (51 loc) · 1.24 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
#
if [ "${MGICONFIG}" = "" ]
then
export MGICONFIG=/usr/local/mgi/live/mgiconfig
fi
source ${MGICONFIG}/master.config.sh
export PG_DBSERVER="bhmgidb07lp.jax.org"
export PG_DBNAME="pub"
export PG_DBUSER="mgd_public"
export PG_1LINE_PASSFILE=""
export AGR_CURATION_SCHEMA="agr_curation_schema"
export AGR_CURATION_SCHEMA_URL="https://github.com/alliance-genome/agr_curation_schema"
export AGR_CURATION_SCHEMA_VERSION="2.15.0"
export LOGFILE=""
export OUTPUT_DIR="${DATALOADSOUTPUT}/mgi/AGRdatafeedPS"
export TOKEN_FILE="${HOME}/.DQM_UPLOAD_TOKEN_PS"
# ---------------------
# Echos its arguments to the log file. Prepends a datetime stamp.
#
logit () {
if [[ ${LOGFILE} ]] ; then
echo `date` "$*" >> ${LOGFILE}
else
echo `date` "$*"
fi
}
# ---------------------
# Logs a message and exits with error code 1.
#
die () {
logit "$*"
exit 1
}
# ---------------------
# If the exit code of the last command ($?) is not zero,
# either exits with an error message (the default) or
# echos a warning and continues (if called with -w).
#
checkexit () {
c=$?
if [ $c -ne 0 ]; then
if [ "$1" == "-w" ] ; then
shift
logit "WARNING: nonzero exit code detected." "$*"
else
die "ERROR: $*"
fi
fi
return 0
}