blob: 6f2d8e9e9a6d0747ff9303ebb3a110ed0e59cd9c [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001#!/bin/bash
2
3# Copyright 2019-present Open Networking Foundation
4#
5# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
6
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