<commit_before>#!/bin/bash

 #*****************************************************************************
 #*                                                                           *
 #* Copyright FUJITSU LIMITED 2020                                            *
 #*                                                                           *
 #* Creation Date: 16-07-2020                                                 *
 #*                                                                           *
 #*****************************************************************************

if [ ! -z ${HOST_FQDN} ]; then
    sed -i "s|^#base_url=http://127.0.0.1:8080|base_url=https://${HOST_FQDN}:8681|g" /usr/share/tomcat/webapps/birt/WEB-INF/viewer.properties
fi

# Copy SSL private key and certificate, generate Keystore and copy to Tomcat config
find /import/ssl/privkey -type f -exec cp -f {} /opt/ssl.key \;
find /import/ssl/cert -type f -exec cp -f {} /opt/ssl.crt \;
find /import/ssl/chain -type f -exec cp -f {} /opt/ssl.chain \;
if [ -f /opt/ssl.chain ]; then
    openssl pkcs12 -export \<commit_msg>Fix Birt Port (#296)<commit_after>#!/bin/bash

 #*****************************************************************************
 #*                                                                           *
 #* Copyright FUJITSU LIMITED 2020                                            *
 #*                                                                           *
 #* Creation Date: 16-07-2020                                                 *
 #*                                                                           *
 #*****************************************************************************

if [ z ${OSCM_BIRT_URL} ]; then
  if [ ! -z ${REPORT_ENGINEURL} ]; then
     export OSCM_BIRT_URL=$(echo ${REPORT_ENGINEURL} | awk -F'/' '{ print $1 "//" $3 "/" }')
   fi
fi
sed -i "s|^#base_url=http://127.0.0.1:8080|base_url=${OSCM_BIRT_URL}|g" /usr/share/tomcat/webapps/birt/WEB-INF/viewer.properties


# Copy SSL private key and certificate, generate Keystore and copy to Tomcat config
find /import/ssl/privkey -type f -exec cp -f {} /opt/ssl.key \;
find /import/ssl/cert -type f -exec cp -f {} /opt/ssl.crt \;
find /import/ssl/chain -type f -exec cp -f {} /opt/ssl.chain \;
if [ -f /opt/ssl.chain ]; then
    openssl pkcs12 -export \
{'fraction_non_alphanumeric': 0.24373673036093418, 'fraction_numerical': 0.024203821656050957, 'mean_word_length': 1.3991853360488797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2312525', 'n_tokens_mistral': 651, 'n_tokens_neox': 573, 'n_words': 138}