From f5f9c7e57d837474dcf5f6e2dc3713f6b5c4e85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20Mu=C3=B1oz-Pomer=20Fuentes?= Date: Sun, 24 Sep 2023 12:45:47 +0100 Subject: [PATCH] Use env variables and defaults sensibly... everywhere --- bin/create-bioentities-schema.sh | 2 +- bin/create-bioentities-suggesters.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/create-bioentities-schema.sh b/bin/create-bioentities-schema.sh index cf4490a..15632d9 100755 --- a/bin/create-bioentities-schema.sh +++ b/bin/create-bioentities-schema.sh @@ -8,7 +8,7 @@ HOST=${SOLR_HOST:-"localhost:8983"} SOLR_USER=${SOLR_USER:-"solr"} SOLR_PASS=${SOLR_PASS:-"SolrRocks"} SOLR_AUTH="-u $SOLR_USER:$SOLR_PASS" -COLLECTION=${SOLR_COLLECTION:-"bioentities-v${SCHEMA_VERSION}"} +COLLECTION="${SOLR_COLLECTION:-"bioentities"}-v${SCHEMA_VERSION:-"1"}" ############################################################################################# diff --git a/bin/create-bioentities-suggesters.sh b/bin/create-bioentities-suggesters.sh index 12c18c9..1db1ff4 100755 --- a/bin/create-bioentities-suggesters.sh +++ b/bin/create-bioentities-suggesters.sh @@ -8,7 +8,7 @@ HOST=${SOLR_HOST:-"localhost:8983"} SOLR_USER=${SOLR_USER:-"solr"} SOLR_PASS=${SOLR_PASS:-"SolrRocks"} SOLR_AUTH="-u $SOLR_USER:$SOLR_PASS" -COLLECTION=${SOLR_COLLECTION:-"bioentities-v${SCHEMA_VERSION}"} +COLLECTION="${SOLR_COLLECTION:-"bioentities"}-v${SCHEMA_VERSION:-"1"}" #############################################################################################