From 04243d335d2210173bdb74c2413b28452b583921 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Fri, 15 Mar 2024 10:52:56 +0100 Subject: [PATCH] MT#59588 scripts/commit: source /etc/ngcp-roles for SPCE cases * $NGCP_TYPE is unset on SPCE by default, add checks for $NGCP_TYPE being unset and load it manually for such cases as it should be present on all NGCP platforms. Change-Id: I5a8fafd1a376fadb2e15aa96db8d473d65b212d7 --- scripts/commit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/commit b/scripts/commit index d5471432..fba06247 100755 --- a/scripts/commit +++ b/scripts/commit @@ -94,6 +94,9 @@ if [ -z "${NO_DB_SYNC:-}" ] ; then log_info "Synchronizing MariaDB grants/credentials" ngcp-sync-db-grants | sed "s/^/$timestamp_replacementchars/" ngcp-sync-db-creds | sed "s/^/$timestamp_replacementchars/" + if [ -z "${NGCP_TYPE:-}" ] ; then # SPCE + . /etc/default/ngcp-roles + fi if [ "${NGCP_TYPE}" == "carrier" ] && [ "${NGCP_IS_PROXY}" == "yes" ] ; then . /etc/default/ngcp-db log_info "Synchronizing MariaDB grants/credentials for ${LOCAL_DBHOST}:${LOCAL_DBPORT}"