Skip to content

Commit a461281

Browse files
committed
Convert COHORT to the correct WDK model dir and properly set in model-config.xml
1 parent c772a80 commit a461281

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Model/config/SiteSearchData/model-config.xml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22

3-
<modelConfig modelName="$COHORT/siteSearchModel"
3+
<modelConfig modelName="$MODEL_DIR/siteSearchModel"
44
webServiceUrl="local"
55
smtpServer="127.0.0.1"
66
supportEmail=""

dockerfiles/entrypoint.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@
1010
# which leads us to this exception, where we set the COHORT var if PROJECT_ID
1111
# is EupathDB
1212

13-
if [ "${PROJECT_ID}" = "EuPathDB" ]
14-
then
15-
export COHORT=Portal
16-
fi
13+
export MODEL_DIR=$COHORT
14+
15+
# expect COHORT to be ApiCommon|ClinEpi|Microbiome|OrthoMCL
16+
17+
#if [ "${PROJECT_ID}" = "EuPathDB" ]
18+
#then
19+
# export MODEL_LOCATION=Portal
20+
#fi
1721

18-
if [ "${PROJECT_ID}" = "ClinEpiDB" ]
22+
if [ "${COHORT}" = "ClinEpi" ]
1923
then
20-
export COHORT=EDA
24+
export MODEL_DIR=EDA
2125
fi
2226

2327
if [ ! -f ${GUS_HOME}/config/SiteSearchData/model-config.xml ];

0 commit comments

Comments
 (0)