]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core186: remove incinga and sslh if installed
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 19 Apr 2024 06:17:04 +0000 (06:17 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 19 Apr 2024 06:19:51 +0000 (06:19 +0000)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/186/update.sh

index d79a35133d35d85c9495958c1125e115ee504c80..80510b9342ad3066bb071d01c30f718f5a431ad1 100644 (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
+