X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F48%2Fupdate.sh;h=b34d37d65a03f7c2952890aef0ac0f4e0d8689b2;hp=b67200a70a056a7c554b87a7d65d73ddf874c0c2;hb=4c93a9317f9c5627ce1f9e3fefd5e4097c226e0b;hpb=2daf2ca308661547782cd819869dc8477ed08910 diff --git a/config/rootfiles/core/48/update.sh b/config/rootfiles/core/48/update.sh index b67200a70a..b34d37d65a 100644 --- a/config/rootfiles/core/48/update.sh +++ b/config/rootfiles/core/48/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=48 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + # #Stop services