blob: b5fa5248fa14b313e14ea47f2c2585abc3706526 [file] [log] [blame]
Sylvain Desbureauxe1b8ac62021-02-16 10:29:00 +01001#!/bin/sh
2
3###
4# ============LICENSE_START=======================================================
5# APPC
6# ================================================================================
7# Copyright (C) 2018-2019 AT&T Intellectual Property. All rights reserved.
8# Copyright (C) 2021 Orange Intellectual Property. All rights reserved.
9# ================================================================================
10# Licensed under the Apache License, Version 2.0 (the "License");
11# you may not use this file except in compliance with the License.
12# You may obtain a copy of the License at
13#
14# http://www.apache.org/licenses/LICENSE-2.0
15#
16# Unless required by applicable law or agreed to in writing, software
17# distributed under the License is distributed on an "AS IS" BASIS,
18# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19# See the License for the specific language governing permissions and
20# limitations under the License.
21# ============LICENSE_END=========================================================
22###
23
24if [ -z "$CDT_PORT" ]
25then
26 CDT_PORT="30232"
27fi
28echo "Setting CDT port to $CDT_PORT"
29sed -i -e "s/30290/$CDT_PORT/" /opt/cdt/main.bundle.js
30
31CDT_HOME=/opt/cdt; export CDT_HOME
32LOG_DIR=/opt/cdt/logs; export LOG_DIR
33MaxLogSize=3000000; export MaxLogSize
34PORT=18080; export PORT
35if [ -z "$HTTPS_KEY_FILE" ]
36then
37 HTTPS_KEY_FILE=/opt/cert/cdt-key.pem
38 export HTTPS_KEY_FILE
39fi
40if [ -z "$HTTPS_CERT_FILE" ]
41then
42 HTTPS_CERT_FILE=/opt/cert/cdt-cert.pem
43 export HTTPS_CERT_FILE
44fi
45echo "*** cert file: ${HTTPS_CERT_FILE}"
46echo "*** key file : ${HTTPS_KEY_FILE}"
47node $CDT_HOME/app/ndserver.js