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