From c5e786718bd0d83b260b9b11b05a9a8165489ec1 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 24 May 2014 12:57:04 +0200 Subject: [PATCH] Fix check for crontab The following commands edit keystone's cron table, so check keystone's and not root's cron table first. Change-Id: Ib2966d4358a2cb697e8c124c910712aabd024c11 Backport: icehouse Closes-Bug: #1322342 --- doc/install-guide/section_keystone-install.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/install-guide/section_keystone-install.xml b/doc/install-guide/section_keystone-install.xml index ca5d51436a..8090c0b52e 100644 --- a/doc/install-guide/section_keystone-install.xml +++ b/doc/install-guide/section_keystone-install.xml @@ -217,11 +217,11 @@ log_dir = /var/log/keystone Run the following command to purge expired tokens every hour and log the output to /var/log/keystone/keystone-tokenflush.log: - # (crontab -l 2>&1 | grep -q token_flush) || \ + # (crontab -l -u keystone 2>&1 | grep -q token_flush) || \ echo '@hourly /usr/bin/keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1' >> /var/spool/cron/crontabs/keystone - # (crontab -l 2>&1 | grep -q token_flush) || \ + # (crontab -l -u keystone 2>&1 | grep -q token_flush) || \ echo '@hourly /usr/bin/keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1' >> /var/spool/cron/keystone - # (crontab -l 2>&1 | grep -q token_flush) || \ + # (crontab -l -u keystone 2>&1 | grep -q token_flush) || \ echo '@hourly /usr/bin/keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1' >> /var/spool/cron/tabs/keystone