Skip to content

Commit

Permalink
Use env variables and defaults sensibly... everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsomunozpomer committed Sep 24, 2023
1 parent ca3a75c commit f5f9c7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/create-bioentities-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"}"

#############################################################################################

Expand Down
2 changes: 1 addition & 1 deletion bin/create-bioentities-suggesters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"}"

#############################################################################################

Expand Down

0 comments on commit f5f9c7e

Please sign in to comment.