From c2858d05c589cf27ecef1f64564d77478dd0f08d Mon Sep 17 00:00:00 2001
From: Chris Cormack <chrisc@catalyst.net.nz>
Date: Wed, 24 May 2017 08:25:38 +1200
Subject: [PATCH] [SIGNED-OFF] Bug 17717 : Work around for the permissions
 problem when running process_message_queue

To test
1/ Make sure some things are in the message queue
2/ Run the cron jobs, notice nothing is sent
3/ Build and install a new package (or manually update the
/etc/cron.d/koha-common file)
4/ Run the jobs again, notice mail is sent

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
---
 debian/koha-common.cron.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/koha-common.cron.d b/debian/koha-common.cron.d
index 149fc47..5413bb6 100644
--- a/debian/koha-common.cron.d
+++ b/debian/koha-common.cron.d
@@ -9,4 +9,4 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 # Uncomment the following line if you do not want to use the koha-index-daemon integration
 # */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled)
 
-*/15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
+*/15 * * * * root cd /tmp && koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
-- 
2.1.4