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
This commit is contained in:
jackning 2016-10-08 22:49:57 -04:00
parent 7fa1a08fd2
commit cebed25608

View File

@ -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