Core Update 172: Extract files before removing any

Note to self: Also do this in further Core Updates.

Suggested-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2022-12-03 11:57:18 +01:00
parent 41dfd30c9a
commit eb9e29f9a7

View File

@@ -46,6 +46,12 @@ if [ -e /boot/uEnv.txt ]; then
cp -vf /boot/uEnv.txt /boot/uEnv.txt.org
fi
# Extract files
extract_files
# update linker config
ldconfig
# Remove files
rm -rvf \
/etc/pcmcia \
@@ -136,12 +142,6 @@ for addon in gnu-netcat powertop; do
/opt/pakfire/db/rootfiles/${addon}
done
# Extract files
extract_files
# update linker config
ldconfig
# Update Language cache
/usr/local/bin/update-lang-cache