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:
parent
7fa1a08fd2
commit
cebed25608
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user