From e854587c94cdb1bdc3bf444548037fe9e2093681 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Thu, 11 Jun 2015 16:12:34 +0000 Subject: [PATCH] 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 --- docker/common/keystone/start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/common/keystone/start.sh b/docker/common/keystone/start.sh index 6dfebe0605..ca9fb22666 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