From 7ad1e894df7c4f3b0b7f83ef1d8875d7ccd22440 Mon Sep 17 00:00:00 2001 From: Ronny Trommer Date: Mon, 16 Oct 2023 17:36:51 +0200 Subject: [PATCH] feat: Add support for JDBC connection pools introduced in Horizon 32.0.4 --- bootstrap-debian.sh | 37 +++++++++++++++++++++++++++++-------- bootstrap-yum.sh | 37 +++++++++++++++++++++++++++++-------- 2 files changed, 58 insertions(+), 16 deletions(-) diff --git a/bootstrap-debian.sh b/bootstrap-debian.sh index d6f0add..001116b 100644 --- a/bootstrap-debian.sh +++ b/bootstrap-debian.sh @@ -249,13 +249,17 @@ setCredentials() { echo -n "Generate OpenNMS database config ... " if [[ -f "${OPENNMS_HOME}"/etc/opennms-datasources.xml ]]; then printf ' - - + + + + password="${scv:postgres-admin:password}"> + + + + + + ' "${DB_NAME}" "${DB_NAME}" \ | sudo -u opennms tee "${OPENNMS_HOME}"/etc/opennms-datasources.xml 1>>/dev/null 2>>"${ERROR_LOG}" checkError "${?}" diff --git a/bootstrap-yum.sh b/bootstrap-yum.sh index bc5b6ea..4729bb7 100644 --- a/bootstrap-yum.sh +++ b/bootstrap-yum.sh @@ -235,13 +235,17 @@ setCredentials() { echo -n "Generate OpenNMS database config ... " if [[ -f "${OPENNMS_HOME}"/etc/opennms-datasources.xml ]]; then printf ' - - + + + + password="${scv:postgres-admin:password}"> + + + + + + ' "${DB_NAME}" "${DB_NAME}" \ | sudo -u opennms tee "${OPENNMS_HOME}"/etc/opennms-datasources.xml 1>>/dev/null 2>>"${ERROR_LOG}" checkError "${?}"