diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-12-20 17:08:21 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-12-20 17:08:55 +0800 |
commit | b0170533b7952112f462ec10cad9791d0342a764 (patch) | |
tree | 4eab5d84547f4423a8fb8d2f1caaeba4838b617c /testapi/docker | |
parent | c2907beb200142f57568371205092a700a49541d (diff) |
bugfix: empty webportal when running in docker
error message:
angular.js:11655 Error: [$injector:unpr] http://errors.angularjs.org/1.3.15/$injector/unpr?p0=authenticateProvider%20%3C-%20authenticate
Change-Id: I39efeeea17ae55d762d85d8f56cf5f241ff866f8
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
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 |