system: better cleanup of *.pkgsave files

These mostly appear on development systems but are basically
not required in any case.
This commit is contained in:
Franco Fichtner 2021-11-09 07:35:01 +01:00
parent e22a0656f8
commit 354d5e09f2

View File

@ -7,4 +7,6 @@
touch /usr/local/opnsense/www/index.php
# remove spurious .pkgsave files pkg may have created
daemon -f find /usr/local -type f -name "*.pkgsave" -delete
for DIR in /boot /usr/libexec/bsdinstall /usr/local; do
daemon -f find ${DIR} -type f -name "*.pkgsave" -delete
done