mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
urlfilter.cgi: Fixes bug#10649 - calls urlfilterctrl with remove option if update disabled
- When the url filter update enable checkbox is unchecked then this patch calls urlfilterctrl with the remove option added in the otrher patch of this series. - Tested on my vm testbed that this change does remove the urlfilter symlink from the fcron directories when the update is disabled. Fixes: Bug#10649 Tested-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
01ed9ff321
commit
cb741b5a66
@@ -982,6 +982,11 @@ if ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter save schedule'})
|
||||
{
|
||||
&General::system('/usr/local/bin/urlfilterctrl', 'cron', 'monthly');
|
||||
}
|
||||
|
||||
if ($filtersettings{'ENABLE_AUTOUPDATE'} eq 'off')
|
||||
{
|
||||
&General::system('/usr/local/bin/urlfilterctrl', 'cron', 'remove');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user