From 37750b2f20f63bec2de330533bb4d9a82171e9c1 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 2 Mar 2018 11:51:20 -0300 Subject: [PATCH] Bug 17717: Make cronjobs using koha-foreach use --chdir In order to patch production sites we need to adjust the shipped cronjobs so they are called with the --chdir option switch. Signed-off-by: Kyle M Hall Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- debian/koha-common.cron.d | 2 +- debian/koha-common.cron.daily | 24 ++++++++++++------------ debian/koha-common.cron.hourly | 2 +- debian/koha-common.cron.monthly | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/debian/koha-common.cron.d b/debian/koha-common.cron.d index 149fc47a74..c87207c7ec 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 koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily index 26e6fb455d..50d49d8a83 100644 --- a/debian/koha-common.cron.daily +++ b/debian/koha-common.cron.daily @@ -15,16 +15,16 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -koha-foreach --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl -koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl -koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t -koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl -c -koha-foreach --enabled /usr/share/koha/bin/cronjobs/serialsUpdate.pl -c -koha-foreach --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c -koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1 -koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/null 2>&1 -koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads -koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --mail -koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1 -koha-foreach --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/fines.pl +koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t +koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl -c +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/serialsUpdate.pl -c +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1 +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/null 2>&1 +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads +koha-foreach --chdir --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --mail +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1 +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b koha-run-backups --days 2 --output /var/spool/koha diff --git a/debian/koha-common.cron.hourly b/debian/koha-common.cron.hourly index 4724ca86e9..4db64bbaa2 100644 --- a/debian/koha-common.cron.hourly +++ b/debian/koha-common.cron.hourly @@ -16,4 +16,4 @@ # along with this program. If not, see . -koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl diff --git a/debian/koha-common.cron.monthly b/debian/koha-common.cron.monthly index 03fa1eb7a8..000854b544 100644 --- a/debian/koha-common.cron.monthly +++ b/debian/koha-common.cron.monthly @@ -16,4 +16,4 @@ # along with this program. If not, see . -koha-foreach --enabled /usr/share/koha/bin/cronjobs/share_usage_with_koha_community.pl +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/share_usage_with_koha_community.pl -- 2.39.5