blob: 6f2d8e9e9a6d0747ff9303ebb3a110ed0e59cd9c [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001#!/bin/bash
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003# Copyright 2019-present Open Networking Foundation
4#
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07005# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07006
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