Fix core updater 45-48 to remove only old core updates from cache.

This commit is contained in:
Arne Fitzenreiter
2011-02-26 20:05:06 +01:00
parent 2daf2ca308
commit a16cd7f0ee
4 changed files with 28 additions and 8 deletions

View File

@@ -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

View File

@@ -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=46
for (( i=1; i<=$core; i++ ))
do
rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
done
#
#Stop services

View File

@@ -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=47
for (( i=1; i<=$core; i++ ))
do
rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
done
#
#Stop services

View File

@@ -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