diff options
| author | Paul Bourke <paul.bourke@oracle.com> | 2015-06-11 16:12:34 +0000 |
|---|---|---|
| committer | Paul Bourke <paul.bourke@oracle.com> | 2015-06-19 16:11:56 +0000 |
| commit | e854587c94cdb1bdc3bf444548037fe9e2093681 (patch) | |
| tree | c75d04bbe644dacbce5a60491ca193813ce0d6c3 | |
| parent | 897337cdd61f1702aa7e68da0466804bf0d21a86 (diff) | |
| download | kolla-e854587c94cdb1bdc3bf444548037fe9e2093681.tar.gz kolla-e854587c94cdb1bdc3bf444548037fe9e2093681.zip | |
Create keystone user in start.sh if it doesn't exist
This is required for the source install method (for packages the
user/group is added as part of install)
Change-Id: I9b2e8d3757587276c21967ee67d45277616d433f
| -rwxr-xr-x | docker/common/keystone/start.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/common/keystone/start.sh b/docker/common/keystone/start.sh index 6dfebe060..ca9fb2266 100755 --- a/docker/common/keystone/start.sh +++ b/docker/common/keystone/start.sh @@ -112,6 +112,9 @@ export OS_PASSWORD=${KEYSTONE_ADMIN_PASSWORD} export OS_TENANT_NAME=${ADMIN_TENANT_NAME} EOF +# Create keystone user and group if they don't exist +id -u keystone &>/dev/null || useradd --user-group keystone + # Run PKI Setup script echo "Setting up PKI" /usr/bin/keystone-manage pki_setup --keystone-user keystone --keystone-group keystone |
