X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F46%2Fupdate.sh;h=7769a85a6ece7d934ca19374904d694e67116df3;hp=6d2a75dc49b4eb1b4c7f63006e77197fdb4695a3;hb=0b1f331c5081e10d98ae9b9174bda2fc3442265d;hpb=6f928c4d380d096a1abd0831c2c1de1a920b3ad1 diff --git a/config/rootfiles/core/46/update.sh b/config/rootfiles/core/46/update.sh index 6d2a75dc49..7769a85a6e 100644 --- a/config/rootfiles/core/46/update.sh +++ b/config/rootfiles/core/46/update.sh @@ -25,8 +25,13 @@ /usr/local/bin/backupctrl exclude >/dev/null 2>&1 # -# Remove core updates from pakfire cache to save space... -rm -f /var/cache/pakfire/core-upgrade-*.ipfire +# Remove old core updates from pakfire cache to save space... +core=46 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + # #Stop services