Check if /var/log/keystone exists in cron job

* Check if /var/log/keystone exists in cron job (Closes: #847692).

Change-Id: Ibb71e31b6f0b1c66c80aa25a8eedb5343892fb95
This commit is contained in:
Thomas Goirand 2016-12-18 11:53:22 +01:00
parent 3c2b407fb3
commit bea22cb7d5
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
keystone (2:10.0.0-5) unstable; urgency=medium
* Check if /var/log/keystone exists in cron job (Closes: #847692).
-- Thomas Goirand <zigo@debian.org> Sun, 18 Dec 2016 11:52:15 +0100
keystone (2:10.0.0-4) unstable; urgency=medium
* Fix passlib call of encrypt() which is replaced by hash() upstream

View File

@ -10,7 +10,7 @@ if [ -x /usr/bin/keystone-manage ] ; then
else
PROVIDER=uuid
fi
if [ "${PROVIDER}" = "uuid" ] ; then
if [ "${PROVIDER}" = "uuid" ] && [ -d /var/log/keystone ] ; then
su -c '/usr/bin/keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1' keystone
fi
fi