]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/45/update.sh
Fix core updater 45-48 to remove only old core updates from cache.
[people/pmueller/ipfire-2.x.git] / config / rootfiles / core / 45 / update.sh
index 228ada4e460527028be43a437410d7b1ad6bf4a3..6a76bf845a9c665624ac12d0d222c8d387330892 100644 (file)
 /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