blob: 07c6de7da4c1ce6687fe4ee89e9686dee8f0bdec [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/amf/amf /tmp/coredump/
{{- end }}
#cat config files
cd /free5gc
cat ./config/free5GC.conf
cat ./config/amfcfg.conf
cat /etc/hosts
cp /free5gc/config/amfcfg.conf /tmp/amfcfg.conf
sed -i "s/POD_IP/${POD_IP}/g" /tmp/amfcfg.conf
NRF_ADDR=$(dig +short nrf.omec.svc.cluster.local)
sed -i "s/nrf.free5gc.org/${NRF_ADDR}/g" /tmp/amfcfg.conf
./amf/amf -amfcfg /tmp/amfcfg.conf