From 81f8588684f462d85d92d1c053dba095cf4a6245 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Thu, 10 Feb 2022 14:18:23 -0500 Subject: [PATCH] Bug 16258: (QA follow-up) Add a guard to the cron script Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize --- misc/cronjobs/edi_cron.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/cronjobs/edi_cron.pl b/misc/cronjobs/edi_cron.pl index 90f9fed681..19d3a16561 100755 --- a/misc/cronjobs/edi_cron.pl +++ b/misc/cronjobs/edi_cron.pl @@ -38,6 +38,8 @@ use Koha::Edifact::Transport; use Koha::Plugins::Handler; use Fcntl qw( LOCK_EX O_CREAT O_RDWR SEEK_SET ); +die "Syspref 'Edifact' is disabled" unless C4::Context->preference('Edifact'); + my $logdir = C4::Context->config('logdir'); # logging set to trace as this may be what you -- 2.20.1