]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
update.sh: Remove ABUSECH_BOTNETC2 lists from users systems during update.
authorAdolf Belka <adolf.belka@ipfire.org>
Thu, 20 Feb 2025 21:13:25 +0000 (22:13 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 14:01:19 +0000 (14:01 +0000)
- This removes ABUSECH_BOTNETC2 from users system during the update in the same way as
   done previously with ALIENVAULT and SPAMHAUS_EDROP.
- As next is still in CU192 I could not add these lines into the CU193 update.sh so I have
   added it to the CU192 update.sh
- If not appropriate then let me know and when the CU193 is created in next I will redo
   the patch and re-submit it.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/193/update.sh

index 0f4a4c5a4779914627d28e5222d4cafae6439896..5a5f83444dc9a5b38d7a49887641e00d17bde062 100644 (file)
@@ -17,7 +17,7 @@
 # along with IPFire; if not, write to the Free Software                    #
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
 #                                                                          #
-# Copyright (C) 2024 IPFire-Team <info@ipfire.org>.                        #
+# Copyright (C) 2025 IPFire-Team <info@ipfire.org>.                        #
 #                                                                          #
 ############################################################################
 #
@@ -49,6 +49,13 @@ ldconfig
 # Filesytem cleanup
 /usr/local/bin/filesystem-cleanup
 
+# Remove any entry for ABUSECH_BOTNETC2 from the ipblocklist modified file
+# and the associated ipblocklist files from the /var/lib/ipblocklist directory
+sed -i '/ABUSECH_BOTNETC2=/d' /var/ipfire/ipblocklist/modified
+if [ -e /var/lib/ipblocklist/ABUSECH_BOTNETC2.conf ]; then
+       rm /var/lib/ipblocklist/ABUSECH_BOTNETC2.conf
+fi
+
 # Apply local configuration to sshd_config
 
 # Start services