From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 2/3] update.sh: Remove existing entries for ALIENVAULT & SPAMHAUS_EDROP Date: Fri, 19 Apr 2024 15:39:40 +0200 Message-ID: <20240419133941.3503396-2-adolf.belka@ipfire.org> In-Reply-To: <20240419133941.3503396-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2151210940088067480==" List-Id: --===============2151210940088067480== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - This removes any time entries in the modified file for either ALIENVAULT or SPAMHAUS_EDROP. - This also removes any blocklists for either of these sources from the /var/= lib/ipblocklist directory. - This patch will ensure that any reference to either of these sources is rem= oved from the ipblocklist files. Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- config/rootfiles/core/186/update.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/rootfiles/core/186/update.sh b/config/rootfiles/core/186/= update.sh index d79a35133..9a4bd7f2a 100644 --- a/config/rootfiles/core/186/update.sh +++ b/config/rootfiles/core/186/update.sh @@ -123,6 +123,17 @@ if [ -e /boot/pakfire-kernel-update ]; then /boot/pakfire-kernel-update ${KVER} fi =20 +# Remove any entry for ALIENVAULT or SPAMHAUS_EDROP from the ipblocklist mod= ified file +# and the associated ipblocklist files from the /var/lib/ipblocklist directo= ry +sed -i '/ALIENVAULT=3D/d' /var/ipfire/ipblocklist/modified +sed -i '/SPAMHAUS_EDROP=3D/d' /var/ipfire/ipblocklist/modified +if [ -e /var/lib/ipblocklist/ALIENVAULT.conf ]; then + rm /var/lib/ipblocklist/ALIENVAULT.conf +fi +if [ -e /var/lib/ipblocklist/SPAMHAUS_EDROP.conf ]; then + rm /var/lib/ipblocklist/SPAMHAUS_EDROP.conf +fi + # This update needs a reboot... touch /var/run/need_reboot =20 --=20 2.44.0 --===============2151210940088067480==--