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