]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
Core Update 166: Drop Pakfire metadata for Nano, which is now part of the core system
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 21 Mar 2022 19:10:06 +0000 (19:10 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 21 Mar 2022 19:10:06 +0000 (19:10 +0000)
Cc: Michael Tremer <michael.tremer@ipfire.org>
Cc: Jon Murphy <jon.murphy@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/166/update.sh

index 4c1c1e483a1ed97e276811589919e712d7178881..61f4893c787ec07671f9d37e05a347531e43efa1 100644 (file)
@@ -74,6 +74,14 @@ if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
        /etc/init.d/ipsec start
 fi
 
+# Nano is now part of the core system, remove Pakfire metadata for it
+if [ -e "/opt/pakfire/db/installed/meta-nano" ] && [ -e "/opt/pakfire/db/meta/meta-nano" ]; then
+       rm -vf \
+               /opt/pakfire/db/installed/meta-nano \
+               /opt/pakfire/db/meta/meta-nano \
+               /opt/pakfire/db/rootfiles/nano
+fi
+
 # This update needs a reboot...
 touch /var/run/need_reboot