[bitnami/parse] Fix inability to connect to the database with own correct config. (#73232)

fix libparse.sh

fix inability to connect to the database with own correct config

Signed-off-by: Yaroslav Goloveshko <yari.sgw@gmail.com>
This commit is contained in:
Yaroslav Goloveshko
2024-10-22 18:19:17 +03:00
committed by GitHub
parent 716aefca58
commit 50919e0555

View File

@@ -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
@@ -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"
}
########################