summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/docker/prepare-env.sh
blob: 99433cc8c86ede41dacfcee7cde460dfabe2ef82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
FILE=/etc/opnfv_testapi/config.ini


if [ "$mongodb_url" != "" ]; then
    sudo crudini --set --existing $FILE mongo url $mongodb_url
fi

if [ "$swagger_url" != "" ]; then
    sudo crudini --set --existing $FILE swagger base_url $swagger_url
fi

if [ "$api_port" != "" ];then
    sudo crudini --set --existing $FILE api port $api_port
fi