blob: ec0c519092bbfa0b31af23d51a0d84a40d6f18d2 [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/ausf" ]; then
11 DIR="/free5gc"
12 echo "free5gc directory exist"
13fi
14if [ -d "/sdcore/ausf" ]; 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/ausf/ausf /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 -050024cat config/ausfcfg.conf
25
26GOTRACEBACK=crash ./ausf/ausf -ausfcfg config/ausfcfg.conf