mirror of
https://github.com/bitnami/containers.git
synced 2026-03-10 15:09:17 +08:00
[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:
committed by
GitHub
parent
716aefca58
commit
50919e0555
@@ -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"
|
||||
}
|
||||
|
||||
########################
|
||||
|
||||
Reference in New Issue
Block a user