From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 2/2] urlfilter.cgi: Fixes bug#10649 - calls urlfilterctrl with remove option if update disabled Date: Tue, 26 Sep 2023 16:07:01 +0200 Message-ID: <20230926140701.3438340-2-adolf.belka@ipfire.org> In-Reply-To: <20230926140701.3438340-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4174429401607575361==" List-Id: --===============4174429401607575361== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - When the url filter update enable checkbox is unchecked then this patch cal= ls urlfilterctrl with the remove option added in the otrher patch of this ser= ies. - 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 Signed-off-by: Adolf Belka --- html/cgi-bin/urlfilter.cgi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/html/cgi-bin/urlfilter.cgi b/html/cgi-bin/urlfilter.cgi index 1e54372f1..1ced06e26 100644 --- a/html/cgi-bin/urlfilter.cgi +++ b/html/cgi-bin/urlfilter.cgi @@ -982,6 +982,11 @@ if ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter sa= ve schedule'}) { &General::system('/usr/local/bin/urlfilterctrl', 'cron', 'monthly'); } + =09 + if ($filtersettings{'ENABLE_AUTOUPDATE'} eq 'off') + { + &General::system('/usr/local/bin/urlfilterctrl', 'cron', 'remove'); + } } } =20 --=20 2.42.0 --===============4174429401607575361==--