Skip to content

Commit

Permalink
changed order of questions
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcorneliusmartin committed Feb 26, 2024
1 parent 4f244c7 commit 4934fdb
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions create-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,6 @@ if [ "$WRITE_CONFIG_FILE" = true ]; then
export API_KEY=$API_KEY

# OMOP database settings
is_set_or_prompt "OMOP_PORT"
export OMOP_PORT=$OMOP_PORT
is_set_or_prompt "OMOP_DATABASE"
export OMOP_DATABASE=$OMOP_DATABASE
is_set_or_prompt "OMOP_USER"
export OMOP_USER=$OMOP_USER
is_set_or_prompt "OMOP_PASSWORD"
export OMOP_PASSWORD=$OMOP_PASSWORD
is_set_or_prompt "OMOP_CDM_SCHEMA"
export OMOP_CDM_SCHEMA=$OMOP_CDM_SCHEMA
is_set_or_prompt "OMOP_RESULT_SCHEMA"
export OMOP_RESULT_SCHEMA=$OMOP_RESULT_SCHEMA


if is_set "OMOP_HOST" "silent"; then
if is_set "DOCKER_SERVICE_CONTAINER_LABEL" "silent"; then
print_step "Using previous Docker service container label: $DOCKER_SERVICE_CONTAINER_LABEL"
Expand All @@ -83,6 +69,19 @@ if [ "$WRITE_CONFIG_FILE" = true ]; then
select_database_method
fi

is_set_or_prompt "OMOP_PORT"
export OMOP_PORT=$OMOP_PORT
is_set_or_prompt "OMOP_DATABASE"
export OMOP_DATABASE=$OMOP_DATABASE
is_set_or_prompt "OMOP_USER"
export OMOP_USER=$OMOP_USER
is_set_or_prompt "OMOP_PASSWORD"
export OMOP_PASSWORD=$OMOP_PASSWORD
is_set_or_prompt "OMOP_CDM_SCHEMA"
export OMOP_CDM_SCHEMA=$OMOP_CDM_SCHEMA
is_set_or_prompt "OMOP_RESULT_SCHEMA"
export OMOP_RESULT_SCHEMA=$OMOP_RESULT_SCHEMA

case "$DB_METHOD" in
"Docker-service")
# Code to execute if DB_METHOD is "docker"
Expand Down

0 comments on commit 4934fdb

Please sign in to comment.