From: Adolf Belka Date: Wed, 16 Oct 2024 16:50:20 +0000 (+0200) Subject: update.sh: Remove existing entries for the three FEODO_ tracker lists X-Git-Tag: v2.29-core191~14^2~202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=689e4bdf915095384d7ff160c6debd6717c78a14;p=ipfire-2.x.git update.sh: Remove existing entries for the three FEODO_ tracker lists - This removes any time entries in the modified file for either FEODO_RECOMMENDED, FEODO_IP or FEODO_AGGRESSIVE. - This also removes any blocklists for any of these sources from the /var/lib/ipblocklist directory. - This patch will ensure that any reference to any of these sources is removed from the ipblocklist files. Signed-off-by: Adolf Belka Signed-off-by: Arne Fitzenreiter --- diff --git a/config/rootfiles/core/190/update.sh b/config/rootfiles/core/190/update.sh index 16ef608e2d..cec9492ebe 100644 --- a/config/rootfiles/core/190/update.sh +++ b/config/rootfiles/core/190/update.sh @@ -145,6 +145,21 @@ if [ -e /boot/pakfire-kernel-update ]; then /boot/pakfire-kernel-update ${KVER} fi +# Remove any entry for FEODO_RECOMMENDED, FEODO_IP or FEODO_AGGRESSIVE from the ipblocklist +# modified file and the associated ipblocklist files from the /var/lib/ipblocklist directory +sed -i '/FEODO_RECOMMENDED=/d' /var/ipfire/ipblocklist/modified +sed -i '/FEODO_IP=/d' /var/ipfire/ipblocklist/modified +sed -i '/FEODO_AGGRESSIVE=/d' /var/ipfire/ipblocklist/modified +if [ -e /var/lib/ipblocklist/FEODO_RECOMMENDED.conf ]; then + rm /var/lib/ipblocklist/FEODO_RECOMMENDED.conf +fi +if [ -e /var/lib/ipblocklist/FEODO_IP.conf ]; then + rm /var/lib/ipblocklist/FEODO_IP.conf +fi +if [ -e /var/lib/ipblocklist/FEODO_AGGRESSIVE.conf ]; then + rm /var/lib/ipblocklist/FEODO_AGGRESSIVE.conf +fi + # This update needs a reboot... touch /var/run/need_reboot