blob: a903d752278523cc1a881b5bb826179a27771897 [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/nssf" ]; then
11 DIR="/free5gc"
12 echo "free5gc directory exist"
13fi
14if [ -d "/sdcore/nssf" ]; 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/nssf/nssf /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/nssfcfg.conf
26
27GOTRACEBACK=crash ./nssf/nssf -nssfcfg config/nssfcfg.conf