blob: 04247ebc3f3004c9f117865ab76d412f8b142d74 [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/nssf/nssf /tmp/coredump/
11{{- end }}
12
13#cat config files
14
15cd /free5gc
16cat ./config/free5GC.conf
17cat ./config/nssfcfg.conf
18cat /etc/hosts
19cp /free5gc/config/nssfcfg.conf /tmp/nssfcfg.conf
20sed -i "s/POD_IP/${POD_IP}/g" /tmp/nssfcfg.conf
21NRF_ADDR=$(dig +short nrf.omec.svc.cluster.local)
22sed -i "s/nrf.free5gc.org/${NRF_ADDR}/g" /tmp/nssfcfg.conf
23./nssf/nssf -nssfcfg /tmp/nssfcfg.conf