From: Arne Fitzenreiter Date: Mon, 28 Feb 2011 07:15:45 +0000 (+0100) Subject: Merge branch 'perl' X-Git-Tag: v2.9-core48~15^2 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=1b3cc041d962178eb18c9e5188f248502be9aec9;hp=4407b347125bd64b84e36a4e47a612d2507ecf97 Merge branch 'perl' --- diff --git a/config/rootfiles/core/45/update.sh b/config/rootfiles/core/45/update.sh index 228ada4e46..646a5532a0 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 diff --git a/config/rootfiles/core/46/update.sh b/config/rootfiles/core/46/update.sh index 95c200c0be..3ac423d4da 100644 --- a/config/rootfiles/core/46/update.sh +++ b/config/rootfiles/core/46/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=46 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + # #Stop services diff --git a/config/rootfiles/core/47/update.sh b/config/rootfiles/core/47/update.sh index ef10f558bb..3adc616581 100644 --- a/config/rootfiles/core/47/update.sh +++ b/config/rootfiles/core/47/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=47 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + # #Stop services diff --git a/config/rootfiles/core/48/update.sh b/config/rootfiles/core/48/update.sh index b67200a70a..b34d37d65a 100644 --- a/config/rootfiles/core/48/update.sh +++ b/config/rootfiles/core/48/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=48 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + # #Stop services