]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Core Update 177: Remove dropped squidclamav add-on, if installed
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 9 Jul 2023 15:07:07 +0000 (15:07 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 9 Jul 2023 15:07:07 +0000 (15:07 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/177/update.sh

index 9403fb53a5335e47ba01692f3bae78757fceb9ea..df8992803492b9b9d89a720233c9b65859cbf5ee 100644 (file)
@@ -84,6 +84,18 @@ rm -rvf \
        /boot/dtb-* \
        /lib/modules
 
+# Remove dropped squidclamav add-on, if installed
+if [ -e "/opt/pakfire/db/installed/meta-squidclamav" ]; then
+       stop_service "squidclamav"
+       for i in $(</opt/pakfire/db/rootfiles/squidclamav); do
+               rm -rfv "/${i}"
+       done
+fi
+rm -f \
+       /opt/pakfire/db/installed/meta-squidclamav \
+       /opt/pakfire/db/meta/meta-squidclamav \
+       /opt/pakfire/db/rootfiles/squidclamav
+
 # Extract files
 extract_files