Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Copyright 2020-present Open Networking Foundation |
| 4 | # |
| 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 6 | |
| 7 | set -xe |
| 8 | |
| 9 | {{- if .Values.config.coreDump.enabled }} |
| 10 | cp /free5gc/ausf/ausf /tmp/coredump/ |
| 11 | {{- end }} |
| 12 | |
| 13 | |
| 14 | cd /free5gc |
| 15 | #print config files |
| 16 | cat ./config/free5GC.conf |
| 17 | cat ./config/ausfcfg.conf |
| 18 | cp /free5gc/config/ausfcfg.conf /tmp/ausfcfg.conf |
| 19 | sed -i "s/POD_IP/${POD_IP}/g" /tmp/ausfcfg.conf |
| 20 | NRF_ADDR=$(dig +short nrf.omec.svc.cluster.local) |
| 21 | sed -i "s/nrf.free5gc.org/${NRF_ADDR}/g" /tmp/ausfcfg.conf |
| 22 | ./ausf/ausf -ausfcfg /tmp/ausfcfg.conf |