diff options
Diffstat (limited to 'testapi/docker')
-rwxr-xr-x | testapi/docker/prepare-env.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/testapi/docker/prepare-env.sh b/testapi/docker/prepare-env.sh index 92a0c9f..9086e77 100755 --- a/testapi/docker/prepare-env.sh +++ b/testapi/docker/prepare-env.sh @@ -9,6 +9,11 @@ fi if [ "$base_url" != "" ]; then sudo crudini --set --existing $FILE api url $base_url/api/v1 sudo crudini --set --existing $FILE ui url $base_url - sudo echo "{\"testapiApiUrl\": \"$base_url/api/v1\"}" > \ - /usr/local/share/opnfv_testapi/testapi-ui/config.json + sudo cat > /usr/local/share/opnfv_testapi/testapi-ui/config.json << EOF +{ + "testapiApiUrl": "$base_url/api/v1", + "authenticate": true +} +EOF + fi |