2 ##############################################################################
3 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 mkdir -p /home/opnfv/bottlenecks/config
12 config_file=/home/opnfv/bottlenecks/config/bottlenecks_cfg.yaml
14 if [ ! -f ${config_file} ]; then
15 default_config_file=$(find /home/opnfv -name bottlenecks_cfg.yaml)
16 cp $default_config_file $config_file
17 echo "bottlenecks_cfg.yaml not provided. Using default one"
20 SUITE_PREFIX_CONFIG=$(cat $config_file | grep -w suite_prefix_config | awk 'END {print $NF}')
23 logger -s -t "bottlenecks.info" "$*"
27 logger -s -t "bottlenecks.error" "$*"