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