blob: 04247ebc3f3004c9f117865ab76d412f8b142d74 [file] [log] [blame]
#!/bin/sh
# Copyright 2020-present Open Networking Foundation
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
set -xe
{{- if .Values.config.coreDump.enabled }}
cp /free5gc/nssf/nssf /tmp/coredump/
{{- end }}
#cat config files
cd /free5gc
cat ./config/free5GC.conf
cat ./config/nssfcfg.conf
cat /etc/hosts
cp /free5gc/config/nssfcfg.conf /tmp/nssfcfg.conf
sed -i "s/POD_IP/${POD_IP}/g" /tmp/nssfcfg.conf
NRF_ADDR=$(dig +short nrf.omec.svc.cluster.local)
sed -i "s/nrf.free5gc.org/${NRF_ADDR}/g" /tmp/nssfcfg.conf
./nssf/nssf -nssfcfg /tmp/nssfcfg.conf