mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
core186: remove incinga and sslh if installed
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user