core186: remove incinga and sslh if installed

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2024-04-19 06:17:04 +00:00
parent ea7dd6822c
commit dbda89e0fc

View File

@@ -85,6 +85,20 @@ rm -rvf \
/boot/dtb-* \
/lib/modules
# Remove icinga and sslh add-on, if installed
for addon in icinga sslh; do
if [ -e "/opt/pakfire/db/installed/meta-${addon}" ]; then
/etc/init.d/${addon} stop
for i in $(</opt/pakfire/db/rootfiles/${addon}); do
rm -rfv "/${i}"
done
fi
rm -vf \
/opt/pakfire/db/installed/meta-${addon} \
/opt/pakfire/db/meta/meta-${addon} \
/opt/pakfire/db/rootfiles/${addon}
done
# Extract files
extract_files
@@ -139,3 +153,4 @@ sync
# Don't report the exitcode last command
exit 0