blob: dee769c55f7d934f41bced3b19f0b928fc59285b [file] [log] [blame]
Badhrinath987e1d82020-11-20 13:23:58 -06001#!/bin/sh
2
3# Copyright 2020-present Open Networking Foundation
4#
5# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
6
7set -xe
8
9{{- if .Values.config.coreDump.enabled }}
10cp /free5gc/udr/udr /tmp/coredump/
11{{- end }}
12
13#cat config files
14
15cd /free5gc
16cat ./config/free5GC.conf
17cat ./config/udrcfg.conf
18cat /etc/hosts
19cp /free5gc/config/udrcfg.conf /tmp/udrcfg.conf
20sed -i "s/POD_IP/${POD_IP}/g" /tmp/udrcfg.conf
21NRF_ADDR=$(dig +short nrf.omec.svc.cluster.local)
22sed -i "s/nrf.free5gc.org/${NRF_ADDR}/g" /tmp/udrcfg.conf
23./udr/udr -udrcfg /tmp/udrcfg.conf