bug 801 increase healthcheck timeout for NBI/POL/MON
[osm/devops.git] / docker / Keystone / scripts / start.sh
index de7dfa6..8dd61ad 100755 (executable)
@@ -1,5 +1,23 @@
 #!/bin/bash
 
+# Copyright 2018 Whitestack, LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+# For those usages not covered by the Apache License, Version 2.0 please
+# contact: esousa@whitestack.com or glavado@whitestack.com
+##
+
 DB_EXISTS=""
 DB_NOT_EMPTY=""
 
@@ -101,7 +119,7 @@ source setup_env
 if [ -z $DB_EXISTS ] || [ -z $DB_NOT_EMPTY ]; then
     openstack user create --domain default --password "$SERVICE_PASSWORD" "$SERVICE_USERNAME"
     openstack project create --domain default --description "Service Project" "$SERVICE_PROJECT"
-    openstack role add --project "$SERVICE_PROJECT" --user "$SERVICE_USER" admin
+    openstack role add --project "$SERVICE_PROJECT" --user "$SERVICE_USERNAME" admin
     openstack role delete _member_
 fi