Skip to content

Commit 6c62107

Browse files
sipwiserdarkmind
authored andcommitted
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 (cherry picked from commit 04243d3) (cherry picked from commit df41fb2)
1 parent a7ebc48 commit 6c62107

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ if [ -z "${NO_DB_SYNC:-}" ] ; then
9494
log_info "Synchronizing MariaDB grants/credentials"
9595
ngcp-sync-db-grants | sed "s/^/$timestamp_replacementchars/"
9696
ngcp-sync-db-creds | sed "s/^/$timestamp_replacementchars/"
97+
if [ -z "${NGCP_TYPE:-}" ] ; then # SPCE
98+
. /etc/default/ngcp-roles
99+
fi
97100
if [ "${NGCP_TYPE}" == "carrier" ] && [ "${NGCP_IS_PROXY}" == "yes" ] ; then
98101
. /etc/default/ngcp-db
99102
log_info "Synchronizing MariaDB grants/credentials for ${LOCAL_DBHOST}:${LOCAL_DBPORT}"

0 commit comments

Comments
 (0)