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