Skip to content

Commit

Permalink
fix libparse.sh
Browse files Browse the repository at this point in the history
fix inability to connect to the database with own correct config

Signed-off-by: Yaroslav Goloveshko <[email protected]>
  • Loading branch information
YarRainbow authored Oct 13, 2024
1 parent 62247b1 commit 5534d69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ parse_initialize() {
warn "Parse config.json detected in persistence. Persisting configuration files is deprecated"
cp "$persisted_conf_file" "$PARSE_CONF_FILE"
info "Trying to connect to the database server"
local -r connection_string="$(parse_conf_get "db_host")"
local -r connection_string="$(parse_conf_get "databaseURI")"
parse_wait_for_mongodb_connection "$connection_string"
fi

Expand Down Expand Up @@ -190,7 +190,7 @@ parse_conf_set() {
parse_conf_get() {
local -r key="${1:?key missing}"
debug "Getting ${key} from Parse configuration"
jq ".${key}" "$PARSE_CONF_FILE"
jq -r ".${key}" "$PARSE_CONF_FILE"
}

########################
Expand Down

0 comments on commit 5534d69

Please sign in to comment.