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
mr12.4
Kirill Solomko 1 year ago
parent f268f5dc8a
commit 04243d335d

@ -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}"

Loading…
Cancel
Save