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