X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F45%2Fupdate.sh;fp=config%2Frootfiles%2Fcore%2F45%2Fupdate.sh;h=6a76bf845a9c665624ac12d0d222c8d387330892;hp=228ada4e460527028be43a437410d7b1ad6bf4a3;hb=a16cd7f0eeece794bdead70ccaf17ac43d656ecb;hpb=2daf2ca308661547782cd819869dc8477ed08910 diff --git a/config/rootfiles/core/45/update.sh b/config/rootfiles/core/45/update.sh index 228ada4e46..6a76bf845a 100644 --- a/config/rootfiles/core/45/update.sh +++ b/config/rootfiles/core/45/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=45 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-$i.ipfire +done + # #Stop services echo Stopping Proxy