blob: 106bcd2072c40bcd432bbb27f7053f7dfd8b6418 [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 Ronquilloec2d3e42020-06-05 11:33:39 -07005# SPDX-License-Identifier: Apache-2.0
6# SPDX-License-Identifier: LicenseRef-ONF-Member-Only
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007
8set -ex
9
10{{- if .Values.config.coreDump.enabled }}
11cp /bin/hss /tmp/coredump/
12{{- end }}
13
14CONF_DIR="/opt/c3po/hss/conf"
15LOGS_DIR="/opt/c3po/hss/logs"
16mkdir -p $CONF_DIR $LOGS_DIR
17
18cp /etc/hss/conf/{acl.conf,hss.json,hss.conf,oss.json} $CONF_DIR
19cat $CONF_DIR/{hss.json,hss.conf}
20
21cd $CONF_DIR
22make_certs.sh {{ tuple "hss" "host" . | include "omec-control-plane.diameter_endpoint" }} {{ tuple "hss" "realm" . | include "omec-control-plane.diameter_endpoint" }}
23
24cd ..
25hss -j $CONF_DIR/hss.json