From cebed25608f07f11058a31d2f1a2d94e2142e59f Mon Sep 17 00:00:00 2001 From: jackning Date: Sat, 8 Oct 2016 22:49:57 -0400 Subject: [PATCH] Change keystone.log's permit to keystone:keystone At present, keystone.log's user:group permit is root:kolla, when got token from keystone, it failed. The reason is that: Permission denied. So it shoud be changed keystone:keystone. Change-Id: Ibbbf1d88ba16e5040f9068ea9948373d10593514 Closes-Bug: #1631685 --- docker/keystone/keystone/extend_start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/keystone/keystone/extend_start.sh b/docker/keystone/keystone/extend_start.sh index 14a0a6f89d..b509c7065b 100644 --- a/docker/keystone/keystone/extend_start.sh +++ b/docker/keystone/keystone/extend_start.sh @@ -31,6 +31,12 @@ fi if [[ $(stat -c %U:%G ${KEYSTONE_LOG_DIR}) != "keystone:kolla" ]]; then chown keystone:kolla ${KEYSTONE_LOG_DIR} fi +if [ ! -f "${KEYSTONE_LOG_DIR}/keystone.log" ]; then + touch ${KEYSTONE_LOG_DIR}/keystone.log +fi +if [[ $(stat -c %U:%G ${KEYSTONE_LOG_DIR}/keystone.log) != "keystone:keystone" ]]; then + chown keystone:keystone ${KEYSTONE_LOG_DIR}/keystone.log +fi if [[ $(stat -c %a ${KEYSTONE_LOG_DIR}) != "755" ]]; then chmod 755 ${KEYSTONE_LOG_DIR} fi