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