blob: 8280a073c4f225ca00a444d04c407164963a39be [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001#!/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
Vijaya Rani Tiruveeduladd579db2022-02-03 16:57:10 +05309DIR=""
10if [ -d "/free5gc/smf" ]; then
11 DIR="/free5gc"
12 echo "free5gc directory exist"
13fi
14if [ -d "/sdcore/smf" ]; then
15 DIR="/sdcore"
16 echo "sdcore directory exist"
17fi
18
badhri854c028b32021-11-03 18:24:05 -050019{{- if .Values.config.coreDump.enabled }}
Vijaya Rani Tiruveeduladd579db2022-02-03 16:57:10 +053020cp $DIR/smf/smf /tmp/coredump/
badhri854c028b32021-11-03 18:24:05 -050021{{- end }}
22
Vijaya Rani Tiruveeduladd579db2022-02-03 16:57:10 +053023cd $DIR
badhri854c028b32021-11-03 18:24:05 -050024
25cat config/smfcfg.conf
26cat uerouting/uerouting.conf
27
28GOTRACEBACK=crash ./smf/smf -smfcfg config/smfcfg.conf -uerouting uerouting/uerouting.conf