From 4a4fc8f19a8734a7d92895da3772027550e80f01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Sat, 4 Jun 2022 08:43:15 +0000 Subject: [PATCH] Core Update 168: Ship fcrontab and rebuild it from scratch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is necessary due to IDSv4 changes introducing changes to fcrontab. While this patch will cause any custom cron jobs configured there to be lost, it is better to start with a defined state rather than sed'ing on this file. Cc: Michael Tremer Cc: Stefan Schantl Signed-off-by: Peter Müller --- config/rootfiles/core/168/filelists/files | 1 + config/rootfiles/core/168/update.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config/rootfiles/core/168/filelists/files b/config/rootfiles/core/168/filelists/files index 5f5e172df2..1f80d8e7d2 100644 --- a/config/rootfiles/core/168/filelists/files +++ b/config/rootfiles/core/168/filelists/files @@ -403,3 +403,4 @@ var/ipfire/header.pl var/ipfire/ids-functions.pl var/ipfire/menu.d/20-status.menu var/ipfire/menu.d/30-network.menu +var/spool/cron/root.orig diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/168/update.sh index 84dec941cf..6bb081ff28 100644 --- a/config/rootfiles/core/168/update.sh +++ b/config/rootfiles/core/168/update.sh @@ -128,6 +128,9 @@ fi # Repair any broken MDRAID arrays /usr/local/bin/repair-mdraid +# Rebuild fcrontab from scratch +/usr/bin/fcrontab -z + # Start services /etc/init.d/fcron restart /etc/init.d/sshd restart -- 2.39.2