badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [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 | |
Vijaya Rani Tiruveedula | dd579db | 2022-02-03 16:57:10 +0530 | [diff] [blame^] | 9 | DIR="" |
| 10 | if [ -d "/free5gc/udr" ]; then |
| 11 | DIR="/free5gc" |
| 12 | echo "free5gc directory exist" |
| 13 | fi |
| 14 | if [ -d "/sdcore/udr" ]; then |
| 15 | DIR="/sdcore" |
| 16 | echo "sdcore directory exist" |
| 17 | fi |
| 18 | |
badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 19 | {{- if .Values.config.coreDump.enabled }} |
Vijaya Rani Tiruveedula | dd579db | 2022-02-03 16:57:10 +0530 | [diff] [blame^] | 20 | cp $DIR/udr/udr /tmp/coredump/ |
badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 21 | {{- end }} |
| 22 | |
Vijaya Rani Tiruveedula | dd579db | 2022-02-03 16:57:10 +0530 | [diff] [blame^] | 23 | cd $DIR |
badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 24 | |
| 25 | cat config/udrcfg.conf |
| 26 | |
| 27 | GOTRACEBACK=crash ./udr/udr -udrcfg config/udrcfg.conf |