diff --git a/gogocarto/hooks/post_deploy b/gogocarto/hooks/post_deploy index e746e6e..06877dc 100755 --- a/gogocarto/hooks/post_deploy +++ b/gogocarto/hooks/post_deploy @@ -11,31 +11,6 @@ admin_password=$(options-get admin-password 2>/dev/null) || exit 0 admin_email=$(options-get admin-email 2>/dev/null ) || true -## XXXvlab: can't get real config here -if ! read-0 ts _ _ < <(get_service_relation "$SERVICE_NAME" "mongo-database"); then - err "Couldn't find relation ${DARKCYAN}mongo-database${NORMAL}." - exit 1 -fi - - -## -## We need mongo relation config also -## - -relation_file=$(get_relation_data_file "$SERVICE_NAME" "$ts" "mongo-database") || { - err "Failed to find relation file" - exit 1 -} - -mongo_config=$(cat "$relation_file") || exit 2 - -DBNAME="$(e "$mongo_config" | shyaml get-value dbname)" || { - err "Couldn't retrieve information of ${DARKCYAN}mongo-database${NORMAL}'s relation." - exit 1 -} - - - CONTROL="$SERVICE_DATASTORE/.control" ## Was it already properly propagated to database ? control=$(H "${admin_password}" "${admin_email}")