]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Fix core updater 45-48 to remove only old core updates from cache.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 26 Feb 2011 18:13:37 +0000 (19:13 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 26 Feb 2011 18:13:37 +0000 (19:13 +0100)
Conflicts:

config/rootfiles/core/48/update.sh

config/rootfiles/core/45/update.sh
config/rootfiles/core/46/update.sh
config/rootfiles/core/47/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
index 6d2a75dc49b4eb1b4c7f63006e77197fdb4695a3..ccf6719ce4283f4c39ad491df56da5c9136bd91b 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=46
+for (( i=1; i<=$core; i++ ))
+do
+       rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
+done
+
 #
 #Stop services
 
index ef10f558bb79c9bc9c018d51bdd8847dd0fca9d6..02c315c814f28dd005e66b858e1bb69100ebd792 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=47
+for (( i=1; i<=$core; i++ ))
+do
+       rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
+done
+
 #
 #Stop services