Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 3 | # Copyright 2019-present Open Networking Foundation |
| 4 | # |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 6 | |
| 7 | set -ex |
| 8 | |
| 9 | {{- if .Values.config.coreDump.enabled }} |
| 10 | cp /bin/hss /tmp/coredump/ |
| 11 | {{- end }} |
| 12 | |
| 13 | CONF_DIR="/opt/c3po/hss/conf" |
| 14 | LOGS_DIR="/opt/c3po/hss/logs" |
| 15 | mkdir -p $CONF_DIR $LOGS_DIR |
| 16 | |
| 17 | cp /etc/hss/conf/{acl.conf,hss.json,hss.conf,oss.json} $CONF_DIR |
| 18 | cat $CONF_DIR/{hss.json,hss.conf} |
| 19 | |
| 20 | cd $CONF_DIR |
| 21 | make_certs.sh {{ tuple "hss" "host" . | include "omec-control-plane.diameter_endpoint" }} {{ tuple "hss" "realm" . | include "omec-control-plane.diameter_endpoint" }} |
| 22 | |
| 23 | cd .. |
| 24 | hss -j $CONF_DIR/hss.json |