fcron: Fix invalid syntax in update-location-database cronjob

Fixes: #12484
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-09-24 10:08:41 +00:00
parent 6cfa52d99e
commit 5a0ad44e45
2 changed files with 6 additions and 1 deletions

View File

@@ -56,6 +56,11 @@ if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
fi
/etc/init.d/collectd restart
# Fix invalid cronjob syntax
sed -e "s/^%hourly,random \* \* \*/%hourly,random */g" \
-i /var/spool/cron/root.orig
fcrontab -z
# This update needs a reboot...
#touch /var/run/need_reboot