Core Update 177: Remove dropped squidclamav add-on, if installed

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2023-07-09 15:07:07 +00:00
parent a6039dc9d1
commit 8e82fd2187

View 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