From 1d8b3b7576ac77d1e520e08fb1d2d72182d61cd7 Mon Sep 17 00:00:00 2001
From: Imani Thomas <imani.thomas@bywatersolutions.com>
Date: Wed, 8 Jan 2025 13:28:13 +0000
Subject: [PATCH] Bug 36229: Move koha-run-backups to the top of the cron
Content-Type: text/plain; charset=utf-8

test plan:
    1. check run order of scripts in the cron
    2. apply patch
    3. koha-run-backups is now at the beginning of the cron

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 debian/koha-common.cron.daily | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily
index 0d960ef0c5..ef01f154ad 100644
--- a/debian/koha-common.cron.daily
+++ b/debian/koha-common.cron.daily
@@ -15,6 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+koha-run-backups --days 2 --output /var/spool/koha
 koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl -c
 koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_checkin.pl
 koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/recalls/expire_recalls.pl
@@ -30,4 +31,3 @@ koha-foreach --chdir --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_da
 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-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/plugins_nightly.pl
-koha-run-backups --days 2 --output /var/spool/koha
-- 
2.39.5