From: Michael Tremer Date: Thu, 24 Sep 2020 10:08:41 +0000 (+0000) Subject: fcron: Fix invalid syntax in update-location-database cronjob X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b57d9769b573770473bcd80addd856273fe948f4;p=people%2Fms%2Fipfire-2.x.git fcron: Fix invalid syntax in update-location-database cronjob Fixes: #12484 Signed-off-by: Michael Tremer --- diff --git a/config/cron/crontab b/config/cron/crontab index 331eaa4a50..1a1939336e 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -60,7 +60,7 @@ HOME=/ 00 2 * 10-11 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl # Update location database once a month -%hourly,random * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-location-database >/dev/null 2>&1 +%hourly,random * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-location-database >/dev/null 2>&1 # Retry sending spooled mails regularly %hourly * /usr/sbin/dma -q diff --git a/config/rootfiles/core/150/update.sh b/config/rootfiles/core/150/update.sh index c125c058cc..cb8d532611 100644 --- a/config/rootfiles/core/150/update.sh +++ b/config/rootfiles/core/150/update.sh @@ -103,6 +103,11 @@ ldconfig # Filesytem cleanup /usr/local/bin/filesystem-cleanup +# Fix invalid cronjob syntax +sed -e "s/^%hourly,random \* \* \*/%hourly,random */g" \ + -i /var/spool/cron/root.orig +fcrontab -z + # Start services /etc/init.d/collectd start