blob: 6b3a5f9e53c2e12411b29e9e6ec82a5889d2b3b1 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001#!/bin/bash
2
3# Copyright 2019-present Open Networking Foundation
4#
Ajay Lotan Thakur03189d22022-02-10 14:06:03 -06005# SPDX-License-Identifier: Apache-2.0
badhri854c028b32021-11-03 18:24:05 -05006
7set -ex
8
9{{- if .Values.config.coreDump.enabled }}
10cp /bin/hss /tmp/coredump/
11{{- end }}
12
13CONF_DIR="/opt/c3po/hss/conf"
14LOGS_DIR="/opt/c3po/hss/logs"
15mkdir -p $CONF_DIR $LOGS_DIR
16
17cp /etc/hss/conf/{acl.conf,hss.json,hss.conf,oss.json} $CONF_DIR
18cat $CONF_DIR/{hss.json,hss.conf}
19
20cd $CONF_DIR
21make_certs.sh {{ tuple "hss" "host" . | include "omec-control-plane.diameter_endpoint" }} {{ tuple "hss" "realm" . | include "omec-control-plane.diameter_endpoint" }}
22
23cd ..
24hss -j $CONF_DIR/hss.json