mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user