]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Merge branch 'perl'
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 28 Feb 2011 07:15:45 +0000 (08:15 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 28 Feb 2011 07:15:45 +0000 (08:15 +0100)
config/rootfiles/core/45/update.sh
config/rootfiles/core/46/update.sh
config/rootfiles/core/47/update.sh
config/rootfiles/core/48/update.sh

index 228ada4e460527028be43a437410d7b1ad6bf4a3..646a5532a06ac3b8c76034e9c9cd6847093e7b5c 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 95c200c0be263a1a5112320bdf3b4ef85c2c8637..3ac423d4da00a4b94eada12e46143cb9e567cf47 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..3adc6165812dd6c436f20a9862048201b5408180 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
 
index b67200a70a056a7c554b87a7d65d73ddf874c0c2..b34d37d65a03f7c2952890aef0ac0f4e0d8689b2 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=48
+for (( i=1; i<=$core; i++ ))
+do
+       rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire
+done
+
 #
 #Stop services